From ef8e2a37863ec97c88aedcfd67d2a2e47188bf4b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 3 Feb 2018 15:07:01 +0200 Subject: Work around VC issue --- build2/test/rule.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'build2/test') diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index 9a00d84..bc4060d 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -684,10 +684,10 @@ namespace build2 // We simulate stdin redirect (as ()); const path& ip (it.path ()); @@ -748,7 +748,7 @@ namespace build2 args.push_back ("-u"); // Note that MinGW-built diff utility (as of 3.3) fails trying to - // detect if STDIN contains text or binary data. We will help it a bit + // detect if stdin contains text or binary data. We will help it a bit // to workaround the issue. // #ifdef _WIN32 @@ -775,8 +775,8 @@ namespace build2 diag_record dr; if (!run_test (tt, dr, - args.data () + (stdin ? 3 : 0), // Skip cat. - stdin ? &cat : nullptr)) + args.data () + (sin ? 3 : 0), // Skip cat. + sin ? &cat : nullptr)) { dr << info << "test command line: "; print_process (dr, args); -- cgit v1.1