public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] [testsuite] tolerate enabled but missing language frontends
@ 2023-06-28 11:09 Alexandre Oliva
0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2023-06-28 11:09 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2f873dd5d5ee4420f4737d0b644e7e818174fbf5
commit 2f873dd5d5ee4420f4737d0b644e7e818174fbf5
Author: Alexandre Oliva <oliva@adacore.com>
Date: Wed Jun 28 07:58:29 2023 -0300
[testsuite] tolerate enabled but missing language frontends
When a language is enabled but we run the testsuite against a tree in
which the frontend compiler is not present, help.exp fails. It
recognizes the output pattern for a disabled language, but not a
missing frontend. Extend the pattern so that it covers both cases.
for gcc/testsuite/ChangeLog
* lib/options.exp (check_for_options_with_filter): Handle
missing frontend compiler like disabled language.
Diff:
---
gcc/testsuite/lib/options.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/lib/options.exp b/gcc/testsuite/lib/options.exp
index 30e6e50d703..a4b15c14f9c 100644
--- a/gcc/testsuite/lib/options.exp
+++ b/gcc/testsuite/lib/options.exp
@@ -59,7 +59,7 @@ proc check_for_options_with_filter { language gcc_options exclude \
set gcc_output [gcc_target_compile $srcfname $filebase.x executable $gcc_options]
remote_file build delete $srcfname $filebase.x $filebase.gcno
- if {[regexp -- "compiler not installed on this system" $gcc_output]} {
+ if {[regexp -- "compiler not installed on this system|cannot execute" $gcc_output]} {
unsupported "$test: $language compiler not available"
return
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-28 11:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-28 11:09 [gcc(refs/users/aoliva/heads/testme)] [testsuite] tolerate enabled but missing language frontends Alexandre Oliva
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).