aboutsummaryrefslogtreecommitdiff
path: root/build2/test/rule.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-17 00:39:40 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-17 23:49:15 +0300
commit145adc9d4bc338657ce6f609dcac67682eb329e3 (patch)
tree3e87bcb76f693a0aa2284a4916a54519be6ae1a4 /build2/test/rule.cxx
parentaaf0d51b8ba50f2614313bf098ee6695235db676 (diff)
Audit all print_process()/process ctor for path_search()
Diffstat (limited to 'build2/test/rule.cxx')
-rw-r--r--build2/test/rule.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx
index 2dc4abd..4cd91d4 100644
--- a/build2/test/rule.cxx
+++ b/build2/test/rule.cxx
@@ -304,7 +304,8 @@ namespace build2
file& ft (static_cast<file&> (t));
assert (!ft.path ().empty ()); // Should have been assigned by update.
- cstrings args {ft.path ().string ().c_str ()};
+ process_path fpp (run_search (ft.path (), true));
+ cstrings args {fpp.recall_string ()};
// Do we have options?
//
@@ -332,12 +333,16 @@ namespace build2
// Do we have output?
//
+ path dp ("diff");
+ process_path dpp;
if (pts.size () != 0 && pts[1] != nullptr)
{
file& ot (static_cast<file&> (*pts[1]));
assert (!ot.path ().empty ()); // Should have been assigned by update.
- args.push_back ("diff");
+ dpp = run_search (dp, true);
+
+ args.push_back (dpp.recall_string ());
args.push_back ("--strip-trailing-cr"); //@@ TMP: see module.cxx
args.push_back ("-u");
args.push_back (ot.path ().string ().c_str ());