diff options
author | Tom Tromey <tromey@adacore.com> | 2023-01-19 11:26:53 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-01-19 15:18:01 -0700 |
commit | 3db27e74ee6175a2c73f3481ae5c5b8b2e4bc18f (patch) | |
tree | 7c2cf95191d601bd54db5a72122aff4f22f32bcc | |
parent | 1bb82b89ae9d884016e55f2ade99c74fcc92a581 (diff) | |
download | gdb-3db27e74ee6175a2c73f3481ae5c5b8b2e4bc18f.zip gdb-3db27e74ee6175a2c73f3481ae5c5b8b2e4bc18f.tar.gz gdb-3db27e74ee6175a2c73f3481ae5c5b8b2e4bc18f.tar.bz2 |
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 <tdevries@suse.de>
-rw-r--r-- | gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp b/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp index b10daa6..752298a 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 } |