* lib/gdb.exp (gdb_compile_test): Watch for "compiler not installed"

output from gcc.
This commit is contained in:
Doug Evans 2010-03-19 17:59:37 +00:00
parent d7d158ed1d
commit 6bb85cd171
2 changed files with 5 additions and 0 deletions

View 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>.

View 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]"