[gdb/testsuite] Fix untested messages in gdb.mi/*.exp

The effect of:
...
untested "y.exp"
...
in a gdb.x/y.exp is:
...
UNTESTED: gdb.x/y.exp: y.exp
...
which is a bit pointless.

Replace these untested messages in gdb.mi/*.exp with the usual "failed to
compile".

Likewise for an:
...
untested $testname
...
where the variable is undefined.

Tested on x86_64-linux.
This commit is contained in:
Tom de Vries
2021-09-30 19:07:47 +02:00
parent 7325ba796b
commit b6107a72ba
5 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested mi-regs.exp
untested "failed to compile"
return -1
}

View File

@ -18,7 +18,7 @@ load_lib mi-support.exp
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "mi-async-run.exp"
untested "failed to compile"
return -1
}

View File

@ -26,7 +26,7 @@ standard_testfile basics.c
if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable {debug}] != "" } then {
untested mi-frame-regs.exp
untested "failed to compile"
return -1
}

View File

@ -57,7 +57,7 @@ puts $f "int main (void) { return 0; }"
close $f
if { [gdb_compile "$srcfileabs" "${binfile}" executable {debug}] != "" } {
untested $testname
untested "failed to compile"
return -1
}

View File

@ -30,7 +30,7 @@ standard_testfile vla.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" \
"${binfile}" executable {debug}] != "" } {
untested mi-vla-basics.exp
untested "failed to compile"
return -1
}