[llvm-commits] [llvm] r160644 - /llvm/trunk/utils/test_debuginfo.pl
Eric Christopher
echristo at apple.com
Mon Jul 23 13:54:17 PDT 2012
Author: echristo
Date: Mon Jul 23 15:54:17 2012
New Revision: 160644
URL: http://llvm.org/viewvc/llvm-project?rev=160644&view=rev
Log:
Fix a "Bad fd number" error on some platforms due to a less portable
redirection in the system call.
Patch by Andy Gibbs.
Modified:
llvm/trunk/utils/test_debuginfo.pl
Modified: llvm/trunk/utils/test_debuginfo.pl
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/test_debuginfo.pl?rev=160644&r1=160643&r2=160644&view=diff
==============================================================================
--- llvm/trunk/utils/test_debuginfo.pl (original)
+++ llvm/trunk/utils/test_debuginfo.pl Mon Jul 23 15:54:17 2012
@@ -49,7 +49,7 @@
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");
More information about the llvm-commits
mailing list