]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libjava.exp (exec_gij): Change [ to { in if statement.
authorKyle Galloway <kgallowa@gcc.gnu.org>
Thu, 25 Jan 2007 14:42:45 +0000 (14:42 +0000)
committerKyle Galloway <kgallowa@gcc.gnu.org>
Thu, 25 Jan 2007 14:42:45 +0000 (14:42 +0000)
2007-01-25  Kyle Galloway  <kgallowa@redhat.com>

* testsuite/libjava.jvmti/lib/libjava.exp (exec_gij): Change [ to { in
if statement.

From-SVN: r121174

libjava/testsuite/lib/libjava.exp

index e20365a881dafc9ad15b16784a37e973fe135744..09d4f099a02c0eb65ccc1bbbaf2fc6a89246f123 100644 (file)
@@ -511,8 +511,10 @@ proc exec_gij {jarfile expectFile ld_library_additions} {
   
   set gij [libjava_find_gij]
   set classname [file rootname [file tail $jarfile]]
+  
+  puts "LD_LIBRARY_PATH=. $gij -cp $jarfile $classname"
        
-  set result [libjava_load $gij "-cp $jarfile" "$classname"]
+  set result [libjava_load $gij "-cp $jarfile $classname"]
   set status [lindex $result 0]
   set output [lindex $result 1]
 
@@ -529,12 +531,12 @@ proc exec_gij {jarfile expectFile ld_library_additions} {
   set expected [read $id]
   close $id
 
-  if [! [string compare $output $expected]] {
+  if {! [string compare $output $expected]} {
     pass "$classname output"
     return 1
   } else {
-       fail "$classname output"
-       return 0
+    fail "$classname output"
+    return 0
   }
 }