* [testsuite] tolerate enabled but missing language frontends
@ 2023-06-28 11:25 Alexandre Oliva
2023-06-28 14:46 ` Jeff Law
0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Oliva @ 2023-06-28 11:25 UTC (permalink / raw)
To: gcc-patches; +Cc: Rainer Orth, Mike Stump
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.
Tested on x86_64-linux-gnu. Ok to install?
for gcc/testsuite/ChangeLog
* lib/options.exp (check_for_options_with_filter): Handle
missing frontend compiler like disabled language.
---
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 30e6e50d703dc..a4b15c14f9c6c 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
}
--
Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/
Free Software Activist GNU Toolchain Engineer
Disinformation flourishes because many people care deeply about injustice
but very few check the facts. Ask me about <https://stallmansupport.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [testsuite] tolerate enabled but missing language frontends
2023-06-28 11:25 [testsuite] tolerate enabled but missing language frontends Alexandre Oliva
@ 2023-06-28 14:46 ` Jeff Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2023-06-28 14:46 UTC (permalink / raw)
To: Alexandre Oliva, gcc-patches; +Cc: Rainer Orth, Mike Stump
On 6/28/23 05:25, Alexandre Oliva via Gcc-patches wrote:
>
> 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.
>
> Tested on x86_64-linux-gnu. Ok to install?
>
>
> for gcc/testsuite/ChangeLog
>
> * lib/options.exp (check_for_options_with_filter): Handle
> missing frontend compiler like disabled language.
ok
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-28 14:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-28 11:25 [testsuite] tolerate enabled but missing language frontends Alexandre Oliva
2023-06-28 14:46 ` Jeff Law
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).