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 Do not skip the block device mmap test, a...



details:   https://anonhg.NetBSD.org/src/rev/864d4be56247
branches:  trunk
changeset: 779525:864d4be56247
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jun 01 15:59:21 2012 +0000

description:
Do not skip the block device mmap test, as it does not crash
the kernel any more. Mark it as expected failure instead.

diffstat:

 tests/lib/libc/sys/t_mmap.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 8ebeee01db99 -r 864d4be56247 tests/lib/libc/sys/t_mmap.c
--- a/tests/lib/libc/sys/t_mmap.c       Fri Jun 01 14:52:48 2012 +0000
+++ b/tests/lib/libc/sys/t_mmap.c       Fri Jun 01 15:59:21 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mmap.c,v 1.5 2012/05/16 19:12:59 martin Exp $ */
+/* $NetBSD: t_mmap.c,v 1.6 2012/06/01 15:59:21 martin Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -55,7 +55,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_mmap.c,v 1.5 2012/05/16 19:12:59 martin Exp $");
+__RCSID("$NetBSD: t_mmap.c,v 1.6 2012/06/01 15:59:21 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/mman.h>
@@ -170,7 +170,8 @@
        size_t len;
        int fd = -1;
 
-       atf_tc_skip("The test case causes a panic (PR kern/38889)");
+       atf_tc_expect_signal(SIGSEGV, "mmap of block devices does not work "
+           "(PR kern/38889)");
 
        ATF_REQUIRE(sysctl(mib, miblen, NULL, &len, NULL, 0) == 0);
        drives = malloc(len);



Home | Main Index | Thread Index | Old Index