This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite] XFAIL gfortran.dg/nint_2.f90 only for -O0


This test fails on some targets due to a bug in the math library, which
is out of our control.  It has been XFAILed for those targets, but that
makes one torture run XFAIL and the rest XPASS, cluttering up the test
summary.  Use the new test directive dg-xfail-run-if to XFAIL only the
option that is expected to fail, allowing the rest of the torture
options to PASS.

Tested on powerpc64-linux with -m32/-m64, checked in on trunk.

2008-05-21  Janis Johnson  <janis187@us.ibm.com>

	* gfortran.dg/nint_2.f90: XFAIL only when using -O0.

Index: gcc/testsuite/gfortran.dg/nint_2.f90
===================================================================
--- gcc/testsuite/gfortran.dg/nint_2.f90	(revision 135729)
+++ gcc/testsuite/gfortran.dg/nint_2.f90	(working copy)
@@ -3,7 +3,8 @@
 ! PR 31202
 ! http://gcc.gnu.org/ml/fortran/2005-04/msg00139.html
 !
-! { dg-do run { xfail powerpc-ibm-aix* powerpc*-*-linux* *-*-mingw* } }
+! { dg-do run }
+! { dg-xfail-run-if "PR 33271, math library bug" { powerpc-ibm-aix powerpc*-*-linux* *-*-mingw* } { "-O0" } { "" } }
   real(kind=8) :: a
   integer(kind=8) :: i1, i2
   real :: b



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]