[committed,gdb/testsuite] Use untested in gdb.debuginfod/fetch_src_and_symbols.exp

Message ID 20210930171143.GA25318@delia
State New
Headers show
Series
  • [committed,gdb/testsuite] Use untested in gdb.debuginfod/fetch_src_and_symbols.exp
Related show

Commit Message

Tom Tromey via Gdb-patches Sept. 30, 2021, 5:11 p.m.
Hi,

With running test-case gdb.debuginfod/fetch_src_and_symbols.exp with target
board unix/-bad, I get:
...
gcc: error: unrecognized command line option '-bad'^M
compiler exited with status 1
gdb compile failed, gcc: error: unrecognized command line option '-bad'
FAIL: gdb.debuginfod/fetch_src_and_symbols.exp: compile
...

Replace the FAIL with the usual:
...
UNTESTED: gdb.debuginfod/fetch_src_and_symbols.exp: failed to compile
...

Tested on x86_64-linux.

Committed to trunk.

Thanks,
- Tom

[gdb/testsuite] Use untested in gdb.debuginfod/fetch_src_and_symbols.exp

---
 gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp b/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp
index 81d4791eb6d..93490fce41e 100644
--- a/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp
+++ b/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp
@@ -54,7 +54,7 @@  if { [catch {file copy -force ${srcdir}/${subdir}/${srcfile} \
 }
 
 if { [gdb_compile "$sourcetmp" "$binfile" executable {debug}] != "" } {
-    fail "compile"
+    untested "failed to compile"
     return -1
 }