From bf9fa1b972229c9caa32c5b95c0ca211757a1e9b Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 4 May 2011 21:46:42 +0000 Subject: [PATCH] pr47878.f90, [...]: Gate test on effective_target fd_truncate. * gfortran.dg/pr47878.f90, gfortran.dg/endfile_3.f90, gfortran.dg/endfile_4.f90, gfortran.dg/ftell_3.f90, gfortran.dg/fmt_cache_1.f, gfortran.dg/namelist_66.f90: Gate test on effective_target fd_truncate. From-SVN: r173397 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gfortran.dg/endfile_3.f90 | 2 +- gcc/testsuite/gfortran.dg/endfile_4.f90 | 2 +- gcc/testsuite/gfortran.dg/fmt_cache_1.f | 2 +- gcc/testsuite/gfortran.dg/ftell_3.f90 | 2 +- gcc/testsuite/gfortran.dg/namelist_66.f90 | 2 +- gcc/testsuite/gfortran.dg/pr47878.f90 | 2 +- 7 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 98d963c4556..32d9f965455 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2011-05-04 Hans-Peter Nilsson + + * gfortran.dg/pr47878.f90, gfortran.dg/endfile_3.f90, + gfortran.dg/endfile_4.f90, gfortran.dg/ftell_3.f90, + gfortran.dg/fmt_cache_1.f, gfortran.dg/namelist_66.f90: + Gate test on effective_target fd_truncate. + 2011-05-04 Uros Bizjak * gcc.target/i386/recip-vec-divf.c: Decrease array sizes. diff --git a/gcc/testsuite/gfortran.dg/endfile_3.f90 b/gcc/testsuite/gfortran.dg/endfile_3.f90 index 0c413145c5d..3e90dda6141 100644 --- a/gcc/testsuite/gfortran.dg/endfile_3.f90 +++ b/gcc/testsuite/gfortran.dg/endfile_3.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! pr44477 READ/WRITE not allowed after ENDFILE !------------------------------------------- open(10, form='formatted', & diff --git a/gcc/testsuite/gfortran.dg/endfile_4.f90 b/gcc/testsuite/gfortran.dg/endfile_4.f90 index a2462c9f878..351643781d0 100644 --- a/gcc/testsuite/gfortran.dg/endfile_4.f90 +++ b/gcc/testsuite/gfortran.dg/endfile_4.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! pr44477 ENDFILE not allowed after ENDFILE !------------------------------------------- open(10, form='formatted', & diff --git a/gcc/testsuite/gfortran.dg/fmt_cache_1.f b/gcc/testsuite/gfortran.dg/fmt_cache_1.f index 1062c2f059b..b9b9fe8ddc9 100644 --- a/gcc/testsuite/gfortran.dg/fmt_cache_1.f +++ b/gcc/testsuite/gfortran.dg/fmt_cache_1.f @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! pr40662 segfaults when specific format is invoked twice. ! pr40330 incorrect io. ! test case derived from pr40662, diff --git a/gcc/testsuite/gfortran.dg/ftell_3.f90 b/gcc/testsuite/gfortran.dg/ftell_3.f90 index 16875d812a8..3e4681b58f5 100644 --- a/gcc/testsuite/gfortran.dg/ftell_3.f90 +++ b/gcc/testsuite/gfortran.dg/ftell_3.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! PR43605 FTELL intrinsic returns incorrect position ! Contributed by Janne Blomqvist, Manfred Schwarb ! and Dominique d'Humieres. diff --git a/gcc/testsuite/gfortran.dg/namelist_66.f90 b/gcc/testsuite/gfortran.dg/namelist_66.f90 index 912261b4dc6..d779ea7b735 100644 --- a/gcc/testsuite/gfortran.dg/namelist_66.f90 +++ b/gcc/testsuite/gfortran.dg/namelist_66.f90 @@ -1,4 +1,4 @@ -! { dg-do run } +! { dg-do run { target fd_truncate } } ! PR46010 Failure to read these two examples of namelists type ptracer character(len = 2) :: sname diff --git a/gcc/testsuite/gfortran.dg/pr47878.f90 b/gcc/testsuite/gfortran.dg/pr47878.f90 index 9cc4a086031..c9227f40007 100644 --- a/gcc/testsuite/gfortran.dg/pr47878.f90 +++ b/gcc/testsuite/gfortran.dg/pr47878.f90 @@ -1,5 +1,5 @@ ! PR fortran/47878 -! { dg-do run } +! { dg-do run { target fd_truncate } } integer :: a(5) open (99, recl = 40) write (99, '(5i3)') 1, 2, 3 -- 2.30.2