Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sys Degrade all intermediate failures due to ...
details: https://anonhg.NetBSD.org/src/rev/f32228196d99
branches: trunk
changeset: 779645:f32228196d99
user: martin <martin%NetBSD.org@localhost>
date: Fri Jun 08 07:18:58 2012 +0000
description:
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:
tests/lib/libc/sys/t_mincore.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 418ea272e594 -r f32228196d99 tests/lib/libc/sys/t_mincore.c
--- a/tests/lib/libc/sys/t_mincore.c Thu Jun 07 23:32:47 2012 +0000
+++ b/tests/lib/libc/sys/t_mincore.c Fri Jun 08 07:18:58 2012 +0000
@@ -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 @@
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 @@
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");
Home |
Main Index |
Thread Index |
Old Index