This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] Don't mark java tests as FAIL if java compiler is missing
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Wed, 17 Mar 2010 20:18:15 -0700 (PDT)
- Subject: [patch] Don't mark java tests as FAIL if java compiler is missing
Hi.
I'm getting this:
Running ../../../../src/gdb/testsuite/gdb.java/jmain.exp ...
FAIL: gdb.java/jmain.exp: compilation jmain.java
Running ../../../../src/gdb/testsuite/gdb.java/jmisc.exp ...
FAIL: gdb.java/jmisc.exp: compilation jmisc.java
Running ../../../../src/gdb/testsuite/gdb.java/jprint.exp ...
FAIL: gdb.java/jprint.exp: compilation jprint.java
The output from gcc is this:
Executing on host: gcc ../../../../src/gdb/testsuite/gdb.java/jmain.java --main=jmain -g -lm -o /usr/local/g3/gnu/sourceware/pure-gdb/build/obj64/gdb/testsuite/gdb.java/jmain (timeout = 300)
gcc: ../../../../src/gdb/testsuite/gdb.java/jmain.java: Java compiler not installed on this system
compiler exited with status 1
output is:
gcc: ../../../../src/gdb/testsuite/gdb.java/jmain.java: Java compiler not installed on this system
gdb_compile_test watches for various ways that a compiler can be missing
so that it can mark the test as unsupported.
This patch adds another.
I will check this in tomorrow if there are no objections.
2010-03-17 Doug Evans <dje@google.com>
* gdb.exp (gdb_compile_test): Watch for "compiler not installed"
output from gcc.
Index: gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.142
diff -u -p -r1.142 gdb.exp
--- gdb.exp 12 Mar 2010 21:07:51 -0000 1.142
+++ gdb.exp 18 Mar 2010 03:10:55 -0000
@@ -1267,6 +1267,8 @@ proc gdb_compile_test {src output} {
unsupported "compilation [file tail $src]"
} elseif { [regexp {.*: command not found[\r|\n]*$} $output] } {
unsupported "compilation [file tail $src]"
+ } elseif { [regexp {.*: [^\r\n]*compiler not installed[^\r\n]*[\r|\n]*$} $output] } {
+ unsupported "compilation [file tail $src]"
} else {
verbose -log "compilation failed: $output" 2
fail "compilation [file tail $src]"