See also PR libfortran/125005.  Ok for trunk and gcc-16?
-- >8 --
I added this attribute only to those tests requiring linking and
runtime use, i.e. those failing as per the PR.

        PR libfortran/125005
        * gfortran.dg/coarray/failed_images_2.f08,
        gfortran.dg/coarray/image_status_2.f08,
        gfortran.dg/coarray/stopped_images_2.f08: Require sleep effective
        target.
---
 gcc/testsuite/gfortran.dg/coarray/failed_images_2.f08  | 2 +-
 gcc/testsuite/gfortran.dg/coarray/image_status_2.f08   | 2 +-
 gcc/testsuite/gfortran.dg/coarray/stopped_images_2.f08 | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gfortran.dg/coarray/failed_images_2.f08 
b/gcc/testsuite/gfortran.dg/coarray/failed_images_2.f08
index 78d92daf0715..f0b4f59aca90 100644
--- a/gcc/testsuite/gfortran.dg/coarray/failed_images_2.f08
+++ b/gcc/testsuite/gfortran.dg/coarray/failed_images_2.f08
@@ -1,4 +1,4 @@
-! { dg-do run }
+! { dg-do run { target sleep } }
 
 program test_failed_images_2
   use iso_fortran_env
diff --git a/gcc/testsuite/gfortran.dg/coarray/image_status_2.f08 
b/gcc/testsuite/gfortran.dg/coarray/image_status_2.f08
index 8866f2374819..748fa4e49360 100644
--- a/gcc/testsuite/gfortran.dg/coarray/image_status_2.f08
+++ b/gcc/testsuite/gfortran.dg/coarray/image_status_2.f08
@@ -1,4 +1,4 @@
-! { dg-do run }
+! { dg-do run { target sleep } }
 
 program test_image_status_2
   use iso_fortran_env
diff --git a/gcc/testsuite/gfortran.dg/coarray/stopped_images_2.f08 
b/gcc/testsuite/gfortran.dg/coarray/stopped_images_2.f08
index dadd00ecda7a..cd9008fdd4e5 100644
--- a/gcc/testsuite/gfortran.dg/coarray/stopped_images_2.f08
+++ b/gcc/testsuite/gfortran.dg/coarray/stopped_images_2.f08
@@ -1,4 +1,4 @@
-! { dg-do run }
+! { dg-do run { target sleep } }
 
 program test_stopped_images_2
   use iso_fortran_env
-- 
2.30.2

Reply via email to