diff options
author | Alexandre Oliva <oliva@adacore.com> | 2023-06-29 06:03:24 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2023-06-29 06:03:24 -0300 |
commit | dc93a0f633ba6d782e88c5dcb86c10e688e7eb2c (patch) | |
tree | aedb94d7e36349c51e5fa4e782062e82a0131800 /gcc | |
parent | 6d2eddf456f2d6494cac490c4aa3e7d089926098 (diff) | |
download | gcc-dc93a0f633ba6d782e88c5dcb86c10e688e7eb2c.zip gcc-dc93a0f633ba6d782e88c5dcb86c10e688e7eb2c.tar.gz gcc-dc93a0f633ba6d782e88c5dcb86c10e688e7eb2c.tar.bz2 |
[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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/lib/options.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/options.exp b/gcc/testsuite/lib/options.exp index 30e6e50..a4b15c1 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 } |