diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2025-02-10 09:59:22 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2025-02-10 12:05:44 +0200 |
commit | 84c13fe970101b6f0b1c0510f80c445f2ab9540a (patch) | |
tree | e031b922edf290a5ad8ff1ed056c59ea890e138f /libbuild2/test | |
parent | 4a6fefcc7c8e1521656f3944b9292a2f6e0ab304 (diff) |
Don't pass true for last_cmd argument of build2::script::run() function if don't specify the function to replace command with
Also rename last_cmd argument of script::run[_cond]() functions, to properly
reflect its semantics, and change its default value.
Diffstat (limited to 'libbuild2/test')
-rw-r--r-- | libbuild2/test/script/runner.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libbuild2/test/script/runner.cxx b/libbuild2/test/script/runner.cxx index 98d6868..54009f6 100644 --- a/libbuild2/test/script/runner.cxx +++ b/libbuild2/test/script/runner.cxx @@ -182,7 +182,11 @@ namespace build2 }); ++sp.exec_level; - build2::script::run (sp, expr, ii, li, ll, cf); + build2::script::run (sp, + expr, + ii, li, + ll, + cf, (cf != nullptr) /* replace_last_cmd */); --sp.exec_level; } |