Fortran test: Modify test cases to pass on mingw.
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 17 Feb 2023 03:29:44 +0000 (19:29 -0800)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Fri, 17 Feb 2023 03:38:19 +0000 (19:38 -0800)
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.

gcc/testsuite/gfortran.dg/ISO_Fortran_binding_14.f90
gcc/testsuite/gfortran.dg/pr96486.f90

index 388c543..1a6e2b1 100644 (file)
@@ -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
index fdc7025..dbf7406 100644 (file)
@@ -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