From ff0bf71889b041be794e8bd47d5be57f6eb07ad1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 9 Dec 2020 19:51:43 +0300 Subject: Copy parent scope's test program list in runner's entry() function rather than in scope's constructor --- libbuild2/test/script/script.hxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libbuild2/test/script/script.hxx') diff --git a/libbuild2/test/script/script.hxx b/libbuild2/test/script/script.hxx index 53e4329..ea1f579 100644 --- a/libbuild2/test/script/script.hxx +++ b/libbuild2/test/script/script.hxx @@ -95,6 +95,15 @@ namespace build2 scope_state state = scope_state::unknown; + // Test program paths. + // + // Currently always contains a single element (see test_program() for + // details). While in the future there can be more of them, the zero + // index will always refer to the test variable value and can + // potentially be NULL (see reset_special() for details). + // + small_vector test_programs; + void set_variable (string&& name, names&&, @@ -174,15 +183,6 @@ namespace build2 location end_loc_; optional if_cond_; - - // Test program paths. - // - // Currently always contains a single element (see test_program() for - // details). While in the future there can be more of them, the zero - // index will always refer to the test variable value and can - // potentially be NULL (see reset_special() for details). - // - small_vector test_programs_; }; // group -- cgit v1.1