]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use "maint ignore-probes" in no-libstdcxx-probe.exp
authorTom Tromey <tromey@adacore.com>
Thu, 19 Jan 2023 18:26:53 +0000 (11:26 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 19 Jan 2023 22:18:01 +0000 (15:18 -0700)
While looking at some test output, I saw that no-libstdcxx-probe.exp
was not being run.  However, it occurred to me that Tom de Vries' new
"maint ignore-probes" command could be used to enable this test
unconditionally.

Reviewed-by: Tom de Vries <tdevries@suse.de>
gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp

index b10daa638e66d4a0bcc753fac852a7dd45cb18c9..752298af55d0e5b19eee03ceb94258bf07404d2a 100644 (file)
@@ -21,12 +21,11 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
     return -1
 }
 
-if {![runto_main]} {
-    return -1
-}
+# This tests that $_exception gives an error when the systemtap probes
+# are not available, so simulate this by disabling them.
+gdb_test "maint ignore-probes libstdcxx .*" ".*OBJNAME: ''"
 
-if { [skip_libstdcxx_probe_tests] == 0 } {
-    untested "Have libstdc++ stap probe"
+if {![runto_main]} {
     return -1
 }