]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] tolerate enabled but missing language frontends
authorAlexandre Oliva <oliva@adacore.com>
Thu, 29 Jun 2023 09:03:24 +0000 (06:03 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 29 Jun 2023 09:03:24 +0000 (06:03 -0300)
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.

gcc/testsuite/lib/options.exp

index 30e6e50d703dcb3b9c107b5fb46a866802d60b72..a4b15c14f9c6c8f6fdf0c349dacb9d2863dbbafe 100644 (file)
@@ -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
     }