aboutsummaryrefslogtreecommitdiff
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
commit6bb85cd171585d397ed3d5755ea19d4f2eb73ead (patch)
treef499b34c4792d365dd55630498d0bd4c8c0b0a8a
parentd7d158ed1d3cb9aea0767660bdea503744e4c16b (diff)
downloadgdb-6bb85cd171585d397ed3d5755ea19d4f2eb73ead.zip
gdb-6bb85cd171585d397ed3d5755ea19d4f2eb73ead.tar.gz
gdb-6bb85cd171585d397ed3d5755ea19d4f2eb73ead.tar.bz2
* lib/gdb.exp (gdb_compile_test): Watch for "compiler not installed"
output from gcc.
-rw-r--r--gdb/testsuite/ChangeLog3
-rw-r--r--gdb/testsuite/lib/gdb.exp2
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 6c1bbd7..56b6e60 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,8 @@
2010-03-19 Doug Evans <dje@google.com>
+ * lib/gdb.exp (gdb_compile_test): Watch for "compiler not installed"
+ output from gcc.
+
* gdb.base/break-interp.exp (prelinkNO): Handle prelink binaries
named /usr/sbin/prelink<foo>.
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 6ed661e..c62f706 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]"