From: Tom Tromey Date: Thu, 19 Jan 2023 18:26:53 +0000 (-0700) Subject: Use "maint ignore-probes" in no-libstdcxx-probe.exp X-Git-Tag: binutils-2_41~2183 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3db27e74ee6175a2c73f3481ae5c5b8b2e4bc18f;p=thirdparty%2Fbinutils-gdb.git Use "maint ignore-probes" in no-libstdcxx-probe.exp 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 --- diff --git a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp b/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp index b10daa638e6..752298af55d 100644 --- a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp +++ b/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp @@ -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 }