Module Name:    src
Committed By:   martin
Date:           Fri Jun  1 15:59:22 UTC 2012

Modified Files:
        src/tests/lib/libc/sys: t_mmap.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/sys/t_mmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/sys/t_mmap.c
diff -u src/tests/lib/libc/sys/t_mmap.c:1.5 src/tests/lib/libc/sys/t_mmap.c:1.6
--- src/tests/lib/libc/sys/t_mmap.c:1.5	Wed May 16 19:12:59 2012
+++ src/tests/lib/libc/sys/t_mmap.c	Fri Jun  1 15:59:21 2012
@@ -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 @@ ATF_TC_BODY(mmap_block, tc)
 	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);

Reply via email to