public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Use "maint ignore-probes" in no-libstdcxx-probe.exp
@ 2023-01-19 18:56 Tom Tromey
  2023-01-19 22:03 ` tdevries
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2023-01-19 18:56 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

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.
---
 gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp | 9 ++++-----
 1 file 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 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
 }
 
-- 
2.38.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Use "maint ignore-probes" in no-libstdcxx-probe.exp
  2023-01-19 18:56 [PATCH] Use "maint ignore-probes" in no-libstdcxx-probe.exp Tom Tromey
@ 2023-01-19 22:03 ` tdevries
  0 siblings, 0 replies; 2+ messages in thread
From: tdevries @ 2023-01-19 22:03 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

On 2023-01-19 18:56, Tom Tromey via Gdb-patches wrote:
> 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.
> ---

Hi,

nice to see the new command being used :)

I've tried out the patch, works for me.

LGTM.

Thanks,
- Tom

>  gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp | 9 ++++-----
>  1 file 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 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
>  }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-19 22:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19 18:56 [PATCH] Use "maint ignore-probes" in no-libstdcxx-probe.exp Tom Tromey
2023-01-19 22:03 ` tdevries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).