From a17a9194219f70c543de1def0cdec09c28c62477 Mon Sep 17 00:00:00 2001 From: pooka Date: Wed, 16 Jun 2010 15:39:41 +0000 Subject: [PATCH] Set xfail for tests which have a PR for them. --- tests/fs/ptyfs/t_nullpts.c | 6 +++--- tests/lib/semaphore/sem.c | 5 +++-- tests/util/sh/t_expand.sh | 5 +++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/fs/ptyfs/t_nullpts.c b/tests/fs/ptyfs/t_nullpts.c index d9980143e289..558ab0dabbc7 100644 --- a/tests/fs/ptyfs/t_nullpts.c +++ b/tests/fs/ptyfs/t_nullpts.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_nullpts.c,v 1.1 2010/06/11 23:52:38 pooka Exp $ */ +/* $NetBSD: t_nullpts.c,v 1.2 2010/06/16 15:39:41 pooka Exp $ */ #include #include @@ -59,8 +59,8 @@ mountnull(const char *what, const char *mp, int flags) ATF_TC(nullrevoke); ATF_TC_HEAD(nullrevoke, tc) { - atf_tc_set_md_var(tc, "descr", "null mount ptyfs and revoke " - "(PR kern/43456)"); + atf_tc_set_md_var(tc, "descr", "null mount ptyfs and revoke"); + atf_tc_set_md_var(tc, "xfail", "PR kern/43456"); } ATF_TC_BODY(nullrevoke, tc) diff --git a/tests/lib/semaphore/sem.c b/tests/lib/semaphore/sem.c index b999c9db5327..da8bc25d87ba 100644 --- a/tests/lib/semaphore/sem.c +++ b/tests/lib/semaphore/sem.c @@ -1,4 +1,4 @@ -/* $NetBSD: sem.c,v 1.3 2010/06/12 22:59:59 pooka Exp $ */ +/* $NetBSD: sem.c,v 1.4 2010/06/16 15:39:41 pooka Exp $ */ /* * Common code for semaphore tests. This can be included both into @@ -265,7 +265,8 @@ ATF_TC_HEAD(unlink, tc) /* this is currently broken. i'll append the PR number soon */ atf_tc_set_md_var(tc, "descr", "tests unlinked semaphores can be " - "closed, PR kern/43452 (%s)", LIBNAME); + "closed (%s)", LIBNAME); + atf_tc_set_md_var(tc, "xfail", "PR kern/43452"); } #define SEM "/thesem" diff --git a/tests/util/sh/t_expand.sh b/tests/util/sh/t_expand.sh index c3b4b198ce79..cfb37960eb18 100644 --- a/tests/util/sh/t_expand.sh +++ b/tests/util/sh/t_expand.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_expand.sh,v 1.5 2010/06/14 16:12:41 pooka Exp $ +# $NetBSD: t_expand.sh,v 1.6 2010/06/16 15:39:41 pooka Exp $ # # Copyright (c) 2007, 2009 The NetBSD Foundation, Inc. # All rights reserved. @@ -86,7 +86,8 @@ atf_test_case strip strip_head() { atf_set "descr" "Checks that the %% operator works and strips" \ "the contents of a variable from the given point" \ - "to the end (test fails: bin/43469)" + "to the end" + atf_set "xfail" "PR bin/43469" } strip_body() { line='#define bindir "/usr/bin" /* comment */'