From: Jerry DeLisle Date: Fri, 17 Feb 2023 03:29:44 +0000 (-0800) Subject: Fortran test: Modify test cases to pass on mingw. X-Git-Tag: basepoints/gcc-14~1095 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f978585c2939691176ad8d3fa9c2e4e91ed18bf4;p=thirdparty%2Fgcc.git Fortran test: Modify test cases to pass on mingw. gcc/testsuite/ChangeLog: * gfortran.dg/ISO_Fortran_binding_14.f90: Change example function to CLOCK which is available on mingw as well as other platforms. * gfortran.dg/pr96486.f90: Change variable to PATH likewise. --- diff --git a/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_14.f90 b/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_14.f90 index 388c5438252d..1a6e2b18d7c7 100644 --- a/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_14.f90 +++ b/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_14.f90 @@ -8,7 +8,7 @@ ! MODULE FOO INTERFACE -SUBROUTINE dummy(buf) BIND(C, name="sync") +SUBROUTINE dummy(buf) BIND(C, name="clock") type(*), dimension(..) :: buf END SUBROUTINE END INTERFACE diff --git a/gcc/testsuite/gfortran.dg/pr96486.f90 b/gcc/testsuite/gfortran.dg/pr96486.f90 index fdc7025d61c3..dbf740663b2c 100644 --- a/gcc/testsuite/gfortran.dg/pr96486.f90 +++ b/gcc/testsuite/gfortran.dg/pr96486.f90 @@ -4,6 +4,6 @@ program test implicit none character(0) :: value integer :: l, stat - call get_environment_variable("HOME",value,length=l,status=stat) + call get_environment_variable("PATH",value,length=l,status=stat) if (stat.ne.-1) stop 1 end program test