Commit fd1830eb by Kyle Galloway

libjava.exp (exec_gij): Change [ to { in if statement.

2007-01-25  Kyle Galloway  <kgallowa@redhat.com>

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

From-SVN: r121174
parent 4ca40ac0
...@@ -511,8 +511,10 @@ proc exec_gij {jarfile expectFile ld_library_additions} { ...@@ -511,8 +511,10 @@ proc exec_gij {jarfile expectFile ld_library_additions} {
set gij [libjava_find_gij] set gij [libjava_find_gij]
set classname [file rootname [file tail $jarfile]] 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 status [lindex $result 0]
set output [lindex $result 1] set output [lindex $result 1]
...@@ -529,12 +531,12 @@ proc exec_gij {jarfile expectFile ld_library_additions} { ...@@ -529,12 +531,12 @@ proc exec_gij {jarfile expectFile ld_library_additions} {
set expected [read $id] set expected [read $id]
close $id close $id
if [! [string compare $output $expected]] { if {! [string compare $output $expected]} {
pass "$classname output" pass "$classname output"
return 1 return 1
} else { } else {
fail "$classname output" fail "$classname output"
return 0 return 0
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment