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 Use atf_tc_skip().
details: https://anonhg.NetBSD.org/src/rev/ff831f93cc0a
branches: trunk
changeset: 778027:ff831f93cc0a
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Mar 13 06:37:03 2012 +0000
description:
Use atf_tc_skip().
diffstat:
tests/lib/libc/sys/t_mmap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r f06c743a11b9 -r ff831f93cc0a tests/lib/libc/sys/t_mmap.c
--- a/tests/lib/libc/sys/t_mmap.c Tue Mar 13 05:56:46 2012 +0000
+++ b/tests/lib/libc/sys/t_mmap.c Tue Mar 13 06:37:03 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mmap.c,v 1.3 2012/03/06 11:02:55 jruoho Exp $ */
+/* $NetBSD: t_mmap.c,v 1.4 2012/03/13 06:37:03 jruoho 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.3 2012/03/06 11:02:55 jruoho Exp $");
+__RCSID("$NetBSD: t_mmap.c,v 1.4 2012/03/13 06:37:03 jruoho Exp $");
#include <sys/param.h>
#include <sys/mman.h>
@@ -176,8 +176,8 @@
}
}
- if (i == __arraycount(dev)) /* Skip. */
- return;
+ if (i == __arraycount(dev))
+ atf_tc_skip("failed to find suitable block device");
map = mmap(NULL, 4096, PROT_READ, MAP_FILE, fd, 0);
ATF_REQUIRE(map != MAP_FAILED);
Home |
Main Index |
Thread Index |
Old Index