diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2009-11-10 10:16:10 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2009-11-10 10:16:10 +0000 |
commit | ec3c07fc0ff7ca6defeb89c58727363b6382d2b5 (patch) | |
tree | e571a77afcc13dd913a5db4313536c17e4c54bfb /gdb/testsuite/gdb.java | |
parent | ee143e81426371a93b891ce65891b43034e87347 (diff) | |
download | gdb-ec3c07fc0ff7ca6defeb89c58727363b6382d2b5.zip gdb-ec3c07fc0ff7ca6defeb89c58727363b6382d2b5.tar.gz gdb-ec3c07fc0ff7ca6defeb89c58727363b6382d2b5.tar.bz2 |
* lib/gdb.exp (gdb_compile_test): New.
(skip_ada_tests, skip_java_tests): New.
(gdb_compile): Use gdb_compile_test for f77.
* lib/ada.exp (gdb_compile_ada): Use gdb_compile_test to record result.
* lib/java.exp (compile_java_from_source): Remove runtests check,
use gdb_compile_test to record result.
* gdb.ada/packed_array.exp, gdb.ada/fixed_points.exp,
gdb.ada/exec_changed.exp, gdb.ada/start.exp,
gdb.ada/watch_arg.exp, gdb.ada/null_record.exp,
gdb.ada/array_return.exp, gdb.ada/arrayidx.exp,
gdb.mi/mi-var-child-f.exp, gdb.fortran/types.exp,
gdb.fortran/array-element.exp, gdb.fortran/subarray.exp,
gdb.fortran/derived-type.exp, gdb.fortran/exprs.exp,
gdb.java/jmisc.exp, gdb.java/jmisc1.exp, gdb.java/jprint.exp,
gdb.java/jv-print.exp, gdb.java/jmain.exp: Add language skip,
adjust gdb_compile invocations.
Diffstat (limited to 'gdb/testsuite/gdb.java')
-rw-r--r-- | gdb/testsuite/gdb.java/jmain.exp | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.java/jmisc.exp | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.java/jprint.exp | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.java/jv-print.exp | 4 |
4 files changed, 16 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.java/jmain.exp b/gdb/testsuite/gdb.java/jmain.exp index d834c20..5545f23 100644 --- a/gdb/testsuite/gdb.java/jmain.exp +++ b/gdb/testsuite/gdb.java/jmain.exp @@ -22,12 +22,13 @@ if $tracelevel then { load_lib "java.exp" +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"] != "" } { - untested "Couldn't compile ${srcfile}" - return -1 +if {[compile_java_from_source ${srcfile} ${binfile} "-g"] != ""} { + continue } set prms_id 0 diff --git a/gdb/testsuite/gdb.java/jmisc.exp b/gdb/testsuite/gdb.java/jmisc.exp index 3970e61..50d32db 100644 --- a/gdb/testsuite/gdb.java/jmisc.exp +++ b/gdb/testsuite/gdb.java/jmisc.exp @@ -22,12 +22,13 @@ if $tracelevel then { load_lib "java.exp" +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"] != "" } { - untested "Couldn't compile ${srcfile}" - return -1 +if {[compile_java_from_source ${srcfile} ${binfile} "-g"] != ""} { + continue } # Set the current language to java. This counts as a test. If it diff --git a/gdb/testsuite/gdb.java/jprint.exp b/gdb/testsuite/gdb.java/jprint.exp index cd6eec0..a7cd84e 100644 --- a/gdb/testsuite/gdb.java/jprint.exp +++ b/gdb/testsuite/gdb.java/jprint.exp @@ -22,12 +22,13 @@ if $tracelevel then { load_lib "java.exp" +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"] != "" } { - untested "Couldn't compile ${srcfile}" - return -1 +if {[compile_java_from_source ${srcfile} ${binfile} "-g"] != ""} { + continue } # Set the current language to java. This counts as a test. If it diff --git a/gdb/testsuite/gdb.java/jv-print.exp b/gdb/testsuite/gdb.java/jv-print.exp index 52d44dc..42a0716 100644 --- a/gdb/testsuite/gdb.java/jv-print.exp +++ b/gdb/testsuite/gdb.java/jv-print.exp @@ -17,6 +17,10 @@ if $tracelevel then { strace $tracelevel } +load_lib "java.exp" + +if { [skip_java_tests] } { continue } + set prms_id 0 set bug_id 0 |