aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/runner.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/test/script/runner.cxx')
-rw-r--r--build2/test/script/runner.cxx7
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
+ }
}
}
}