* gdb.java/jmisc.exp: Use standard_testfile.
* gdb.java/jnpe.exp: Use standard_testfile.
* gdb.java/jprint.exp: Use standard_testfile.
+2012-06-22 Tom Tromey <tromey@redhat.com>
+
+ * gdb.java/jmain.exp: Use standard_testfile.
+ * gdb.java/jmisc.exp: Use standard_testfile.
+ * gdb.java/jnpe.exp: Use standard_testfile.
+ * gdb.java/jprint.exp: Use standard_testfile.
+
2012-06-22 Tom Tromey <tromey@redhat.com>
* lib/gdb.exp (default_gdb_init): Set gdb_test_file_name.
if { [skip_java_tests] } { continue }
-set testfile "jmain"
-set srcfile ${srcdir}/$subdir/${testfile}.java
-set binfile ${objdir}/${subdir}/${testfile}
-if {[compile_java_from_source ${srcfile} ${binfile} "-g"] != ""} {
+standard_testfile .java
+if {[compile_java_from_source $srcdir/$subdir/$srcfile $binfile "-g"] != ""} {
continue
}
if { [skip_java_tests] } { continue }
-set testfile "jmisc"
-set srcfile ${srcdir}/$subdir/${testfile}.java
-set binfile ${objdir}/${subdir}/${testfile}
-if {[compile_java_from_source ${srcfile} ${binfile} "-g"] != ""} {
+standard_testfile .java
+if {[compile_java_from_source $srcdir/$subdir/$srcfile $binfile "-g"] != ""} {
continue
}
load_lib "java.exp"
-set testfile "jnpe"
-set srcfile ${testfile}.java
-set binfile ${objdir}/${subdir}/${testfile}
-if { [compile_java_from_source ${srcdir}/$subdir/${srcfile} ${binfile} "-g"] != "" } {
+standard_testfile .java
+if { [compile_java_from_source $srcdir/$subdir/$srcfile $binfile "-g"] != "" } {
untested "Couldn't compile ${srcdir}/$subdir/${srcfile}"
return -1
}
if { [skip_java_tests] } { continue }
-set testfile "jprint"
-set srcfile ${srcdir}/$subdir/${testfile}.java
-set binfile ${objdir}/${subdir}/${testfile}
-if {[compile_java_from_source ${srcfile} ${binfile} "-g"] != ""} {
+standard_testfile .java
+if {[compile_java_from_source $srcdir/$subdir/$srcfile $binfile "-g"] != ""} {
continue
}