Changes in directory llvm/test/lib:
llvm-dg.exp updated: 1.13 -> 1.14 --- Log message: Improve error output. Use the third parameter of the "catch" command to capture the error output from the exec option. This generally will capture the stderr messages generated by the tools. This information is then printed if the test fails. This helps to recognize more quickly what the error was. Otherwise, this information is lost. --- Diffs of the changes: (+3 -3) llvm-dg.exp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/test/lib/llvm-dg.exp diff -u llvm/test/lib/llvm-dg.exp:1.13 llvm/test/lib/llvm-dg.exp:1.14 --- llvm/test/lib/llvm-dg.exp:1.13 Wed Apr 12 16:57:40 2006 +++ llvm/test/lib/llvm-dg.exp Thu May 18 14:42:16 2006 @@ -93,7 +93,7 @@ } else { #run script and catch errors - set retval [ catch {exec /bin/sh $script >& $output} ] + set retval [ catch {exec /bin/sh $script >& $output} errmsg ] if { $retval == 1 } { #Get output @@ -105,10 +105,10 @@ switch $outcome { PASS { file delete $output - fail "$test: \n$result" + fail "$test: \n$errmsg\n$result" } XFAIL { - xfail "$test: \n$result" + xfail "$test: \n$errmsg\n$result" } default { file delete $output _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits