diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/pr68078.f90 | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1444019..adc6422 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gfortran.dg/pr68078.f90 b/gcc/testsuite/gfortran.dg/pr68078.f90 index 4923ddd..092ab29 100644 --- a/gcc/testsuite/gfortran.dg/pr68078.f90 +++ b/gcc/testsuite/gfortran.dg/pr68078.f90 @@ -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 |