From c075003a1fc901d487c4cca0b10847d8fc1135fb Mon Sep 17 00:00:00 2001 From: Louis Krupp Date: Wed, 21 Sep 2016 08:30:51 +0000 Subject: [PATCH] pr68078.f90: Run on x86_64_*_linux* only. 2016-09-21 Louis Krupp * gfortran.dg/pr68078.f90: Run on x86_64_*_linux* only. From-SVN: r240304 --- gcc/testsuite/ChangeLog | 4 ++++ 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 1444019a7d3..adc64225458 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-09-21 Louis Krupp + + * gfortran.dg/pr68078.f90: Run on x86_64_*_linux* only. + 2016-09-21 Richard Biener PR tree-optimization/77648 diff --git a/gcc/testsuite/gfortran.dg/pr68078.f90 b/gcc/testsuite/gfortran.dg/pr68078.f90 index 4923ddd1830..092ab29f450 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 -- 2.30.2