public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] gdb/testsuite: fix xfail in gdb.ada/ptype_tagged_param.exp
@ 2023-01-31 16:36 Simon Marchi
  2023-01-31 17:36 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Marchi @ 2023-01-31 16:36 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

I see:

    ERROR: wrong # args: should be "xfail message"
        while executing
    "xfail "no debug info" $gdb_test_name"
        ("uplevel" body line 3)
        invoked from within
    "uplevel {
            if {!$has_runtime_debug_info} {
                xfail "no debug info" $gdb_test_name
            } else {
                fail $gdb_test_name
            }
        }"

This is because the xfail takes only one argument, fix that.

Change-Id: I2e304d4fd3aa61067c04b5dac2be2ed34dab3190
---
 gdb/testsuite/gdb.ada/ptype_tagged_param.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.ada/ptype_tagged_param.exp b/gdb/testsuite/gdb.ada/ptype_tagged_param.exp
index da9b2bb3ae6c..ba21e7b8e3c4 100644
--- a/gdb/testsuite/gdb.ada/ptype_tagged_param.exp
+++ b/gdb/testsuite/gdb.ada/ptype_tagged_param.exp
@@ -49,7 +49,7 @@ gdb_test_multiple "ptype s" "ptype s" {
     }
     -re -wrap $nodebug {
 	if {!$has_runtime_debug_info} {
-	    xfail "no debug info" $gdb_test_name
+	    xfail "$gdb_test_name (no debug info)"
 	} else {
 	    fail $gdb_test_name
 	}
-- 
2.39.1


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

end of thread, other threads:[~2023-01-31 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-31 16:36 [pushed] gdb/testsuite: fix xfail in gdb.ada/ptype_tagged_param.exp Simon Marchi
2023-01-31 17:36 ` Tom Tromey

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).