* [PATCH] gdb/testsuite: Relax RE for missing compiler in gdb_compile_test
@ 2022-06-14 0:53 Thiago Jung Bauermann
0 siblings, 0 replies; only message in thread
From: Thiago Jung Bauermann @ 2022-06-14 0:53 UTC (permalink / raw)
To: gdb-patches
In Linaro's CI environment GNATMAKE_FOR_TARGET contains flags such as
"--sysroot=..." and "-Wl,...". Because of that, it contains spaces.
Since gdb_compile_test's regular expression to detect a missing compiler
doesn't allow spaces, and also since the Linaro CI isn't available the Ada
testcases which need to build a test binary fail instead of being marked as
unsupported.
Therefore relax the regexp so that it matches output containing spaces.
---
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 75efc4a62d1a..5ab566d1d569 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -2303,7 +2303,7 @@ proc gdb_compile_test {src output} {
return
}
- if { [regexp {^[a-zA-Z_0-9]+: Can't find [^ ]+\.$} $output]
+ if { [regexp {^[a-zA-Z_0-9]+: Can't find .+\.$} $output]
|| [regexp {.*: command not found[\r|\n]*$} $output]
|| [regexp {.*: [^\r\n]*compiler not installed[^\r\n]*[\r|\n]*$} $output] } {
unsupported "$msg (missing compiler)"
base-commit: c2ac533e98438df5e5c2c58cce104c927ad42d09
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-14 1:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-14 0:53 [PATCH] gdb/testsuite: Relax RE for missing compiler in gdb_compile_test Thiago Jung Bauermann
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).