[PATCH v5 01/15] gdb, testsuite: extend gdb_test_multiple checks

Markus Metzger via Gdb-patches
2022-06-02T14:30:17Z

Check for

warning: Corrupted shared library list

and for

warning: while parsing target 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 | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 402450152ac..6aef39e5e02 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -1129,6 +1129,18 @@ 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 "warning: while parsing target library list:.*$prompt_regexp" {
+ fail "$message (shared library list parsing)"
+ 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

--
2.35.3