Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/ffs Use expect_fail instead of defining xfail. Loo...



details:   https://anonhg.NetBSD.org/src/rev/d7a98eb4dd19
branches:  trunk
changeset: 756059:d7a98eb4dd19
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Mon Jul 05 16:34:41 2010 +0000

description:
Use expect_fail instead of defining xfail.  Looks like I missed this one
during the import of atf 0.10.  Thanks pooka@.

diffstat:

 tests/fs/ffs/t_mount.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r cef1fd84df1b -r d7a98eb4dd19 tests/fs/ffs/t_mount.c
--- a/tests/fs/ffs/t_mount.c    Mon Jul 05 16:27:08 2010 +0000
+++ b/tests/fs/ffs/t_mount.c    Mon Jul 05 16:34:41 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_mount.c,v 1.1 2010/06/30 21:54:56 njoly Exp $        */
+/*     $NetBSD: t_mount.c,v 1.2 2010/07/05 16:34:41 jmmv Exp $ */
 
 /*
  * Adapted for rump and atf from a testcase supplied
@@ -19,7 +19,6 @@
 {
        atf_tc_set_md_var(tc, "descr", "mount small 48K ffs image");
        atf_tc_set_md_var(tc, "use.fs", "true");
-       atf_tc_set_md_var(tc, "xfail", "No PR yet");
 }
 
 ATF_TC_BODY(48Kimage, tc)
@@ -29,8 +28,11 @@
        if (ffs_newfs(&tmp, IMGNAME, IMGSIZE) != 0)
                atf_tc_fail("newfs failed");
 
-       if (ffs_mount(tmp, MNTDIR, 0) != 0)
+       if (ffs_mount(tmp, MNTDIR, 0) != 0) {
+               atf_tc_expect_fail("No PR yet");
                atf_tc_fail("mount failed");
+               atf_tc_expect_pass();
+       }
        if (ffs_unmount(MNTDIR, 0) != 0)
                atf_tc_fail("unmount failed");
 



Home | Main Index | Thread Index | Old Index