pr68078.f90: Run on x86_64_*_linux* only.
authorLouis Krupp <louis.krupp@zoho.com>
Wed, 21 Sep 2016 08:30:51 +0000 (08:30 +0000)
committerLouis Krupp <lkrupp@gcc.gnu.org>
Wed, 21 Sep 2016 08:30:51 +0000 (08:30 +0000)
2016-09-21  Louis Krupp  <louis.krupp@zoho.com>

* gfortran.dg/pr68078.f90: Run on x86_64_*_linux* only.

From-SVN: r240304

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr68078.f90

index 1444019..adc6422 100644 (file)
@@ -1,3 +1,7 @@
+2016-09-21  Louis Krupp  <louis.krupp@zoho.com>
+
+       * gfortran.dg/pr68078.f90: Run on x86_64_*_linux* only.
+
 2016-09-21  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/77648
index 4923ddd..092ab29 100644 (file)
@@ -1,6 +1,14 @@
-! { dg-do run }
-! { dg-xfail-run-if "malloc issuing error messages" { *-*-darwin*  } }
+! { dg-do run { target x86_64-*-linux* } }
 ! { dg-additional-sources set_vm_limit.c }
+!
+! This test calls set_vm_limit to set an artificially low address space
+! limit.  set_vm_limit calls setrlimit, which has some portability
+! considerations.  setrlimit gets errors on arm*linux and aarch64*linux,
+! and when the main program calls malloc(), it in turn fails on Darwin.
+! The code being tested is portable, calling ALLOCATED() or ASSOCIATED()
+! to verify that allocation was successful, so the operating assumption
+! is that as long as this test runs on at least one system, we can call
+! it good.
 
 USE :: ISO_C_BINDING !, only: C_INT
 IMPLICIT NONE