From 72242ed7f94352ab8710cfc3e63b7dc88d4d9eda Mon Sep 17 00:00:00 2001 From: jruoho Date: Wed, 8 Jun 2011 05:28:03 +0000 Subject: [PATCH] Use atf_tc_skip() instead of #if 0. --- tests/syscall/t_stat.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/syscall/t_stat.c b/tests/syscall/t_stat.c index 1a0eea6395a2..e2d78a8095f8 100644 --- a/tests/syscall/t_stat.c +++ b/tests/syscall/t_stat.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_stat.c,v 1.4 2011/06/07 19:06:39 jruoho Exp $ */ +/* $NetBSD: t_stat.c,v 1.5 2011/06/08 05:28:03 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__RCSID("$NetBSD: t_stat.c,v 1.4 2011/06/07 19:06:39 jruoho Exp $"); +__RCSID("$NetBSD: t_stat.c,v 1.5 2011/06/08 05:28:03 jruoho Exp $"); #include #include @@ -42,6 +42,8 @@ __RCSID("$NetBSD: t_stat.c,v 1.4 2011/06/07 19:06:39 jruoho Exp $"); #include #include +#include + static const char *path = "stat"; ATF_TC_WITH_CLEANUP(stat_chflags); @@ -85,10 +87,6 @@ ATF_TC_HEAD(stat_dir, tc) ATF_TC_BODY(stat_dir, tc) { - /* - * XXX: This panics qemu/i386 guest. - */ -#if 0 const short depth = 3; struct stat sa, sb; char *argv[2]; @@ -96,6 +94,11 @@ ATF_TC_BODY(stat_dir, tc) FTS *fts; int ops; + /* + * XXX: This is verified to panic at least a qemu/i386 guest. + */ + atf_tc_skip("the test may cause a panic"); + argv[1] = NULL; argv[0] = __UNCONST("/"); @@ -148,7 +151,6 @@ ATF_TC_BODY(stat_dir, tc) } (void)fts_close(fts); -#endif } ATF_TC(stat_err);