* [committed][gdb/testsuite] Fix have_mpx with remote-gdbserver-on-localhost
@ 2022-10-07 14:18 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2022-10-07 14:18 UTC (permalink / raw)
To: gdb-patches
Hi,
With target board remote-gdbserver-on-localhost and gdb.arch/i386-mpx-call.exp
I run into:
...
FAIL: gdb.arch/i386-mpx-call.exp: upper_bnd0: continue to a bnd violation
...
This is due to the have_mpx test which should return 0, but instead returns 1
because the captured output:
...
No MPX support
No MPX support
...
does not match the used regexp:
...
set status [expr ($status == 0) \
&& ![regexp "^No MPX support\r\n" $output]]
...
which does match the captured output with native:
...
No MPX support^M
No MPX support^M
...
Fix this by making the \r in the regexp optional.
Tested on x86_64-linux, with native and target board
remote-gdbserver-on-localhost.
Committed to trunk.
Thanks,
- Tom
[gdb/testsuite] Fix have_mpx with remote-gdbserver-on-localhost
---
gdb/testsuite/lib/gdb.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index d60dceffd3f..99a6de6f724 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -8636,7 +8636,7 @@ gdb_caching_proc have_mpx {
set status [lindex $result 0]
set output [lindex $result 1]
set status [expr ($status == 0) \
- && ![regexp "^No MPX support\r\n" $output]]
+ && ![regexp "^No MPX support\r?\n" $output]]
remote_file build delete $obj
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-07 14:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-07 14:18 [committed][gdb/testsuite] Fix have_mpx with remote-gdbserver-on-localhost Tom de Vries
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).