diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-09 19:51:43 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-11 14:31:39 +0300 |
commit | ff0bf71889b041be794e8bd47d5be57f6eb07ad1 (patch) | |
tree | 2964d1c0803003a896447bdc4181339deaddbe1a /libbuild2/test/script/script.hxx | |
parent | 26af9268e98ed4c82c83b8f6e3f94af71b109eba (diff) |
Copy parent scope's test program list in runner's entry() function rather than in scope's constructor
Diffstat (limited to 'libbuild2/test/script/script.hxx')
-rw-r--r-- | libbuild2/test/script/script.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
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<const path*, 1> test_programs; + void set_variable (string&& name, names&&, @@ -174,15 +183,6 @@ namespace build2 location end_loc_; optional<line> 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<const path*, 1> test_programs_; }; // group |