summaryrefslogtreecommitdiff
path: root/utils/test_debuginfo.pl
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-07-23 20:54:17 +0000
committerEric Christopher <echristo@apple.com>2012-07-23 20:54:17 +0000
commit581a739226381450ea2271cc794618043b6aeb4a (patch)
tree79f0dee32e003e5cb14ed320c10fd8f9f9b5401e /utils/test_debuginfo.pl
parentb42729b53a061e2a3def61eb10e2a648cecd60ae (diff)
downloadllvm-581a739226381450ea2271cc794618043b6aeb4a.tar.gz
llvm-581a739226381450ea2271cc794618043b6aeb4a.tar.bz2
llvm-581a739226381450ea2271cc794618043b6aeb4a.tar.xz
Fix a "Bad fd number" error on some platforms due to a less portable
redirection in the system call. Patch by Andy Gibbs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/test_debuginfo.pl')
-rwxr-xr-xutils/test_debuginfo.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/test_debuginfo.pl b/utils/test_debuginfo.pl
index a03a117064..0832a330f4 100755
--- a/utils/test_debuginfo.pl
+++ b/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");