[gdb/testsuite] Fix untested messages in gdb.mi/*.exp
authorTom de Vries <tdevries@suse.de>
Thu, 30 Sep 2021 17:07:47 +0000 (19:07 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 30 Sep 2021 17:07:47 +0000 (19:07 +0200)
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.

gdb/testsuite/gdb.mi/gdb2549.exp
gdb/testsuite/gdb.mi/mi-async-run.exp
gdb/testsuite/gdb.mi/mi-frame-regs.exp
gdb/testsuite/gdb.mi/mi-fullname-deleted.exp
gdb/testsuite/gdb.mi/mi-vla-c99.exp

index 3a8c3fc53d984772c4b767d0040349f0dbadfb5d..aebf9c904d9c96c224e3528bbe21e7b447f3dd72 100644 (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
 }
 
index 913e0eb6ab4223ee196a6f67077ca8fee74bdd5d..c814cf1f391bd1a017f166b722a1be54d744c4f3 100644 (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
 }
 
index fb43939f89f2cb4b57a540e2a997d10a74f2452a..459b85ca751c5919df22daeee6230f7da5384c9e 100644 (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
 }
 
index fcf97c0fe76f5662ea4df0f210b0965ea6897899..102aadb306b747da3d308259662ffc11ef1c303f 100644 (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
 }
 
index 2080f9ad98ce7361ae45d13f148c3aa7f48ed23d..5e8530c278d2d8fbf9c098af8f7ca42bc1a102d8 100644 (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
 }