]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.gdb/selftest.exp
Use new gdb.exp feature to check for nodebug in the executable for testcases under...
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.gdb / selftest.exp
index 02ad80635eee48cbc7f42769656eafb228722532..fb559aa2ff29ccfcf2f6eddb545053f787a4d1d2 100644 (file)
@@ -247,6 +247,11 @@ proc test_with_self { executable } {
 
     if { [lindex $result 0] != "" } then {
        return -1
+    } else {
+        if { [lsearch -exact [lrange $result 1 end] "nodebug"] >= 0 } then {
+            untested "No debug information, skipping testcase."
+            return -1
+        }
     }
 
     # disassemble yourself