From 145adc9d4bc338657ce6f609dcac67682eb329e3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 17 Sep 2016 00:39:40 +0300 Subject: Audit all print_process()/process ctor for path_search() --- build2/test/rule.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'build2/test/rule.cxx') 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 (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 (*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 ()); -- cgit v1.1