]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
testsuite: add untested in case OS corefile is not found
authorChristina Schimpe <christina.schimpe@intel.com>
Wed, 6 Aug 2025 20:08:35 +0000 (13:08 -0700)
committerChristina Schimpe <christina.schimpe@intel.com>
Thu, 28 Aug 2025 15:33:31 +0000 (08:33 -0700)
Even though the core_find proc will log a warning, it's better to log
"untested" and then terminate the test.  This will help to avoid
silently skipped tests, when running the testsuite.  Most of the tests
already do that.  This patch adds the missing ones.

Approved-By: Luis Machado <luis.machado.foss@gmail.com>
gdb/testsuite/gdb.base/break-interp.exp
gdb/testsuite/gdb.base/corefile.exp
gdb/testsuite/gdb.base/corefile2.exp
gdb/testsuite/gdb.base/corefile3.exp
gdb/testsuite/gdb.base/many-headers.exp
gdb/testsuite/gdb.mi/mi-corefile.exp
gdb/testsuite/gdb.threads/corethreads.exp

index 649cc867f0487819b809e1545ef70dbe3d34aecb..04d8c553c68439acf53aff6ec38826c1bd6f7e50 100644 (file)
@@ -218,6 +218,7 @@ proc test_core {file displacement} {
 
        set corefile [core_find $file {} "segv"]
        if {$corefile == ""} {
+           untested "unable to create or find corefile"
            return
        }
 
index da1fdf3517ce21cf66e8f0ce76b89778866203d6..fd8d1d1274caa48c7ecdf8cf78c232e53b7382d8 100644 (file)
@@ -31,6 +31,7 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
 # mmapped data in core file" test.
 set corefile [core_find $binfile {}]
 if {$corefile == ""} {
+    untested "unable to create or find corefile"
     return 0
 }
 
index 392705b59302ef52fcdbc81fa84da66c84d174c0..d35ba1a129520c694e5311d9db1b573b95cfe863 100644 (file)
@@ -40,6 +40,7 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
 
 set corefile [core_find $binfile {}]
 if {$corefile == ""} {
+    untested "unable to create or find corefile"
     return 0
 }
 
index 57b230004b69a06adfbdba9cca9f94fea027cf57..ef391d15049f3b1f853292b3d4c18113d6431f64 100644 (file)
@@ -34,6 +34,7 @@ if {[build_executable $testfile.exp $testfile $srcfile] == -1} {
 
 set corefile [core_find $binfile {}]
 if {$corefile == ""} {
+    untested "unable to create or find corefile"
     return
 }
 
index f46b9800cf97df5589546be6f2ba9854b7f48182..5e022da8534baaa78a899ea9d865fe281601d728 100644 (file)
@@ -33,6 +33,7 @@ if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
 # Generate core file.
 set corefile [core_find $binfile]
 if {$corefile == ""} {
+    untested "unable to create or find corefile"
     return 0
 }
 
index 3f0e720233023639ab058f002a29341f7cfb05a8..b4914866dfc9bb1a042026141129e5483a9f1007 100644 (file)
@@ -29,6 +29,7 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
 
 set corefile [core_find $binfile {}]
 if {$corefile == ""} {
+    untested "unable to create or find corefile"
     return 0
 }
 
index 3b50ae3a3cda93ce6d1a50c83ae9bfe0138f0b80..0011dc3547c220a67274b83adce20fa880bcf210 100644 (file)
@@ -29,6 +29,7 @@ if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executa
 
 set corefile [core_find $binfile]
 if {$corefile == ""} {
+    untested "unable to create or find corefile"
     return 0
 }