From 2ce6541f3bd7144615e931db3680e2a574116255 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 23 Jul 2012 20:54:17 +0000 Subject: Fix a "Bad fd number" error on some platforms due to a less portable redirection in the system call. Patch by Andy Gibbs. llvm-svn: 160644 --- llvm/utils/test_debuginfo.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/utils/test_debuginfo.pl') 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"); -- cgit v1.2.1