gdb, testsuite: extend gdb_test_multiple checks
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 18 Feb 2022 11:16:33 +0000 (12:16 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Tue, 18 Oct 2022 12:16:08 +0000 (14:16 +0200)
Check for

    warning: Corrupted shared library list

and for

    Invalid cast.
    warning: Probes-based dynamic linker interface failed.
    Reverting to original interface.

in gdb_test_multiple.

gdb/testsuite/lib/gdb.exp

index bfa9fec628e72ff76291c5eda36b0107ef77751a..36bcfacfdd022b4cb65334250a07f36ed3180bbb 100644 (file)
@@ -1188,6 +1188,14 @@ proc gdb_test_multiple { command message args } {
            }
            set result -1
        }
+       -re "Corrupted shared library list.*$prompt_regexp" {
+           fail "$message (shared library list corrupted)"
+           set result -1
+       }
+       -re "Invalid cast\.\r\nwarning: Probes-based dynamic linker interface failed.*$prompt_regexp" {
+           fail "$message (probes interface failure)"
+           set result -1
+       }
     }
     append code $processed_code