[llvm-commits] [hlvm] r38164 - /hlvm/trunk/test/lib/return0.exp

Reid Spencer reid at x10sys.com
Sat Jul 7 17:00:37 PDT 2007


Author: reid
Date: Sat Jul  7 19:00:37 2007
New Revision: 38164

URL: http://llvm.org/viewvc/llvm-project?rev=38164&view=rev
Log:
Use the correct name for the test program with the --start option 
so that it will have a chance at succeeding.

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=38164&r1=38163&r2=38164&view=diff

==============================================================================
--- hlvm/trunk/test/lib/return0.exp (original)
+++ hlvm/trunk/test/lib/return0.exp Sat Jul  7 19:00:37 2007
@@ -50,8 +50,9 @@
   
   foreach test $files {
     set output [file join $outdir ${test}.out]
+    set testname      [file rootname $test]
     set testsrc       [file join $source $test]
-    set testexe       [file join $outdir [file rootname $test] ]
+    set testexe       [file join $outdir $testname ]
     set testbc        [file join $outdir ${test}.bc ]
     set testlinked    [file join $outdir ${test}.linked ]
     set testlinkedbc  [file join $outdir ${test}.linked.bc ]
@@ -77,7 +78,7 @@
           if { $retval != 0 } {
             fail "$test: gcc returned $retval:\n$msg"
           } else {
-            set retval [ catch {exec $testexe -start $testexe } msg ]
+            set retval [ catch {exec $testexe -start $testname } msg ]
             if {$retval == 1} {
               fail "$test: $testexe returned $retval:\n$msg"
             } else {





More information about the llvm-commits mailing list