Invert test in gdb.ada/ptype_tagged_param.exp
authorTom Tromey <tromey@adacore.com>
Fri, 27 Jan 2023 17:22:17 +0000 (10:22 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 27 Jan 2023 17:25:09 +0000 (10:25 -0700)
Simon pointed out that the kfail check in
gdb.ada/ptype_tagged_param.exp is inverted.  See:

https://sourceware.org/pipermail/gdb-patches/2023-January/196296.html

This patch fixes the problem.

gdb/testsuite/gdb.ada/ptype_tagged_param.exp

index eaf61ddde79a96f67070f41841fa1749add41179..759b10f9b6a8662a5e7e6db520e08cd646d42ff9 100644 (file)
@@ -48,7 +48,7 @@ gdb_test_multiple "ptype s" "ptype s" {
        pass $gdb_test_name
     }
     -re -wrap $nodebug {
-       if {$has_runtime_debug_info} {
+       if {!$has_runtime_debug_info} {
            kfail "no debug info" $gdb_test_name
        } else {
            fail $gdb_test_name