summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xllvm/utils/test_debuginfo.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/test_debuginfo.pl b/llvm/utils/test_debuginfo.pl
index a03a1170643..0832a330f4a 100755
--- a/llvm/utils/test_debuginfo.pl
+++ b/llvm/utils/test_debuginfo.pl
@@ -49,7 +49,7 @@ if (!$my_debugger) {
my $debugger_options = "-q -batch -n -x";
# run debugger and capture output.
-system("$my_debugger $debugger_options $debugger_script_file $executable_file >& $output_file");
+system("$my_debugger $debugger_options $debugger_script_file $executable_file > $output_file 2>&1");
# validate output.
system("FileCheck", "-input-file", "$output_file", "$testcase_file");
OpenPOWER on IntegriCloud