summaryrefslogtreecommitdiff
path: root/tests/lib/libc/sys
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2012-06-08 07:18:58 +0000
committermartin <martin@NetBSD.org>2012-06-08 07:18:58 +0000
commite1c492b4e8cf46232cff461af9f153e56acb6034 (patch)
tree0e498008de1b12dcacc35ef67385e45971ad01fb /tests/lib/libc/sys
parent513496407a0a140b22549874d3abd3337f9da73d (diff)
Degrade all intermediate failures due to memory/resource shortage to
"skip" instead of "fail" - only if we get through to the real meat, we can tell wether mlockall/mincore work or not.
Diffstat (limited to 'tests/lib/libc/sys')
-rw-r--r--tests/lib/libc/sys/t_mincore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/libc/sys/t_mincore.c b/tests/lib/libc/sys/t_mincore.c
index 63ef8107cf3..553207a8af7 100644
--- a/tests/lib/libc/sys/t_mincore.c
+++ b/tests/lib/libc/sys/t_mincore.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mincore.c,v 1.7 2012/06/07 09:59:51 martin Exp $ */
+/* $NetBSD: t_mincore.c,v 1.8 2012/06/08 07:18:58 martin Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_mincore.c,v 1.7 2012/06/07 09:59:51 martin Exp $");
+__RCSID("$NetBSD: t_mincore.c,v 1.8 2012/06/08 07:18:58 martin Exp $");
#include <sys/mman.h>
#include <sys/shm.h>
@@ -191,7 +191,7 @@ ATF_TC_BODY(mincore_resid, tc)
MAP_ANON | MAP_PRIVATE | MAP_WIRED, -1, (off_t)0);
if (addr == MAP_FAILED)
- atf_tc_fail("could not mmap wired anonymous test area, system "
+ atf_tc_skip("could not mmap wired anonymous test area, system "
"might be low on memory");
ATF_REQUIRE(check_residency(addr, npgs) == npgs);
@@ -225,7 +225,7 @@ ATF_TC_BODY(mincore_resid, tc)
addr3 = mmap(NULL, npgs * page, PROT_NONE, MAP_ANON, -1, (off_t)0);
if (addr2 == MAP_FAILED || addr3 == MAP_FAILED)
- atf_tc_fail("could not mmap more anonymous test pages with "
+ atf_tc_skip("could not mmap more anonymous test pages with "
"mlockall(MCL_FUTURE) in effect, system "
"might be low on memory");