summaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-03-19 17:59:37 +0000
committerDoug Evans <dje@google.com>2010-03-19 17:59:37 +0000
commit58521a5d58a51f258e44267e7388bfc741776805 (patch)
tree13451454ffc6ea921465bef88cd50a1324ba232e /gdb/testsuite/lib
parent609bf01b52df2370256e870e8e1701126e05fb15 (diff)
downloadgdb-58521a5d58a51f258e44267e7388bfc741776805.tar.gz
* lib/gdb.exp (gdb_compile_test): Watch for "compiler not installed"
output from gcc.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 6ed661ef2c9..c62f706bfb4 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -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]"