aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/java.exp
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2009-11-10 10:16:10 +0000
committerNathan Sidwell <nathan@codesourcery.com>2009-11-10 10:16:10 +0000
commitec3c07fc0ff7ca6defeb89c58727363b6382d2b5 (patch)
treee571a77afcc13dd913a5db4313536c17e4c54bfb /gdb/testsuite/lib/java.exp
parentee143e81426371a93b891ce65891b43034e87347 (diff)
downloadgdb-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/lib/java.exp')
-rw-r--r--gdb/testsuite/lib/java.exp18
1 files changed, 3 insertions, 15 deletions
diff --git a/gdb/testsuite/lib/java.exp b/gdb/testsuite/lib/java.exp
index 19619df..c45af35 100644
--- a/gdb/testsuite/lib/java.exp
+++ b/gdb/testsuite/lib/java.exp
@@ -90,31 +90,19 @@ proc java_init { args } {
#
proc compile_java_from_source { srcfile binfile compile_args } {
global GCJ_UNDER_TEST
- global runtests
global java_initialized
if { $java_initialized != 1 } { java_init }
- set errname [file rootname [file tail $srcfile]]
- if {! [runtest_file_p $runtests $errname]} {
- return
- }
-
set args "compiler=$GCJ_UNDER_TEST"
lappend args "additional_flags=--main=[file rootname [file tail $srcfile]]"
if { $compile_args != "" } {
lappend args "additional_flags=$compile_args"
}
- if { $compile_args != "" } {
- set errname "$errname $compile_args"
- }
-
- set x [target_compile $srcfile ${binfile} executable $args]
- if { $x != "" } {
- verbose "target_compile failed: $x" 2
- return "$errname compilation from source";
- }
+ set result [target_compile $srcfile ${binfile} executable $args]
+ gdb_compile_test $srcfile $result
+ return $result
}
# Local Variables: