public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-7117] [testsuite] [ppc] skip ppc-fortran if fortran is disabled
@ 2023-04-07  5:37 Alexandre Oliva
  0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2023-04-07  5:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f189c4ab489ce72e949c1ecde6b97e9dcbddf72e

commit r13-7117-gf189c4ab489ce72e949c1ecde6b97e9dcbddf72e
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Fri Apr 7 01:04:32 2023 -0300

    [testsuite] [ppc] skip ppc-fortran if fortran is disabled
    
    Skip ppc-fortran.exp if a trivial fortran program cannot be compiled.
    
    
    for  gcc/testsuite/ChangeLog
    
            * gcc.target/powerpc/ppc-fortran/ppc-fortran.exp: Test for
            fortran compiler, skip if missing.

Diff:
---
 gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp b/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp
index f7e99ac8487..f7b7c05487c 100644
--- a/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp
+++ b/gcc/testsuite/gcc.target/powerpc/ppc-fortran/ppc-fortran.exp
@@ -21,6 +21,16 @@ if { ![istarget powerpc*-*-*] && ![istarget rs6000-*-*] } then {
   return
 }
 
+# Make sure there is a fortran compiler to test.
+if { ![check_no_compiler_messages fortran_available assembly {
+! Fortran
+program P
+  stop
+end program P
+} ""] } {
+    return
+}
+
 # Load support procs.
 load_lib gfortran-dg.exp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-07  5:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-07  5:37 [gcc r13-7117] [testsuite] [ppc] skip ppc-fortran if fortran is disabled 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).