[pushed] gdb/testsuite: fix xfail in gdb.ada/ptype_tagged_param.exp

Message ID 20230131163613.47553-1-simon.marchi@efficios.com
State Committed
Commit d8e88d10d8687d61ddb09fc0a0af563c43071555
Headers
Series [pushed] gdb/testsuite: fix xfail in gdb.ada/ptype_tagged_param.exp |

Commit Message

Simon Marchi Jan. 31, 2023, 4:36 p.m. UTC
  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(-)
  

Comments

Tom Tromey Jan. 31, 2023, 5:36 p.m. UTC | #1
>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:

Simon> I see:
Simon>     ERROR: wrong # args: should be "xfail message"

Ugh, sorry about that.

Tom
  

Patch

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
 	}