diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-05-19 14:50:16 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-27 08:35:29 +0200 |
commit | db05f8ead4c2b5ef8a27c3ffc6b20c291b0e7c8c (patch) | |
tree | 5bed4bd0901e6abd728b53bbeed31489af4d1e4b /libbuild2/test | |
parent | 9054e7e2fd59e2222258e2dce3a3300c8d16fb05 (diff) |
Set proper build script command default redirects
Also add printing of set and exit pseudo-builtin command arguments for
verb >= 2 as we do for normal builtins.
Diffstat (limited to 'libbuild2/test')
-rw-r--r-- | libbuild2/test/script/script.cxx | 5 | ||||
-rw-r--r-- | libbuild2/test/script/script.hxx | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libbuild2/test/script/script.cxx b/libbuild2/test/script/script.cxx index 2b99fc2..ed9f2e7 100644 --- a/libbuild2/test/script/script.cxx +++ b/libbuild2/test/script/script.cxx @@ -63,7 +63,10 @@ namespace build2 environment (root.test_target.ctx, test_tt (), wd_path (), wd_name, - p != nullptr ? root.work_dir : wd_path (), sd_name), + p != nullptr ? root.work_dir : wd_path (), sd_name, + redirect (redirect_type::none), + redirect (redirect_type::none), + redirect (redirect_type::none)), parent (p), id_path (cast<path> (assign (root.id_var) = path ())) { diff --git a/libbuild2/test/script/script.hxx b/libbuild2/test/script/script.hxx index e31bf09..163ad65 100644 --- a/libbuild2/test/script/script.hxx +++ b/libbuild2/test/script/script.hxx @@ -24,6 +24,8 @@ namespace build2 { using build2::script::line; using build2::script::lines; + using build2::script::redirect; + using build2::script::redirect_type; using build2::script::line_type; using build2::script::command_expr; |