diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-08 16:37:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-08 16:38:53 +0200 |
commit | f4b2107284329b12f595eba856072b79b824a63f (patch) | |
tree | 0e34fdcd61747adc0cad2c5af5f32d27dab42ae2 /build2/test/script/runner.cxx | |
parent | 278140ebf2bc97eb72a1e8adb04a40a0a5807d8f (diff) |
Implement testscript command-if
Diffstat (limited to 'build2/test/script/runner.cxx')
-rw-r--r-- | build2/test/script/runner.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx index 8db31d9..1d6920a 100644 --- a/build2/test/script/runner.cxx +++ b/build2/test/script/runner.cxx @@ -702,6 +702,13 @@ namespace build2 check_output (p, osp, isp, c.out, ll, sp, "stdout"); check_output (p, esp, isp, c.err, ll, sp, "stderr"); } + + bool concurrent_runner:: + run_if (scope&, const command_expr& expr, size_t, const location&) + { + const command& c (expr.back ().pipe.back ()); // @@ TMP + return c.program.string () == "true"; // @@ TMP + } } } } |