Use atf_tc_skip() instead of #if 0.

This commit is contained in:
jruoho 2011-06-08 05:28:03 +00:00
parent a3fa70a436
commit 72242ed7f9
1 changed files with 9 additions and 7 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/stat.h>
#include <sys/types.h>
@ -42,6 +42,8 @@ __RCSID("$NetBSD: t_stat.c,v 1.4 2011/06/07 19:06:39 jruoho Exp $");
#include <string.h>
#include <unistd.h>
#include <stdio.h>
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);