[llvm-commits] [hlvm] r38336 - /hlvm/trunk/test/lib/return0.exp
Reid Spencer
reid at x10sys.com
Sat Jul 7 17:02:27 PDT 2007
Author: reid
Date: Sat Jul 7 19:02:27 2007
New Revision: 38336
URL: http://llvm.org/viewvc/llvm-project?rev=38336&view=rev
Log:
Fail if anything other than 0 is returned not if 1 is returned.
Modified:
hlvm/trunk/test/lib/return0.exp
Modified: hlvm/trunk/test/lib/return0.exp
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/test/lib/return0.exp?rev=38336&r1=38335&r2=38336&view=diff
==============================================================================
--- hlvm/trunk/test/lib/return0.exp (original)
+++ hlvm/trunk/test/lib/return0.exp Sat Jul 7 19:02:27 2007
@@ -53,7 +53,6 @@
set testlinked [file join $outdir ${test}.linked ]
set testlinkedbc [file join $outdir ${test}.linked.bc ]
set tests [file join $outdir ${test}.s ]
- set execout ""
set retval [ catch { exec $compiler $testsrc -llvmbc -o $testbc } msg ]
if { $retval != 0 } {
fail "$test: hlvm-compiler returned $retval:\n$msg"
@@ -71,7 +70,7 @@
fail "$test: gxx returned $retval:\n$msg"
} else {
set retval [ catch {exec $testexe $testname } msg ]
- if {$retval == 1} {
+ if {$retval != 0} {
fail "$test: $testexe returned $retval:\n$msg"
} else {
pass "$test"
More information about the llvm-commits
mailing list