* lib/gdb.exp (gdb_compile_test): Watch for "compiler not installed"
authorDoug Evans <dje@google.com>
Fri, 19 Mar 2010 17:59:37 +0000 (17:59 +0000)
committerDoug Evans <dje@google.com>
Fri, 19 Mar 2010 17:59:37 +0000 (17:59 +0000)
output from gcc.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index 6c1bbd7..56b6e60 100644 (file)
@@ -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>.
 
index 6ed661e..c62f706 100644 (file)
@@ -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]"