Source-Changes-HG archive

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

[src/trunk]: src/tests/rump/rumpvfs fix pasto, sprinkle ATF_REQUIRE_EQ()



details:   https://anonhg.NetBSD.org/src/rev/91dfc5e2c87d
branches:  trunk
changeset: 755766:91dfc5e2c87d
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Jun 19 13:43:29 2010 +0000

description:
fix pasto, sprinkle ATF_REQUIRE_EQ()

ATF_REQUIRE_ERRNO, oh ATF_REQUIRE_ERRNO, wherefore art thou ATF_REQUIRE_ERRNO?

diffstat:

 tests/rump/rumpvfs/t_etfs.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 69164211c933 -r 91dfc5e2c87d tests/rump/rumpvfs/t_etfs.c
--- a/tests/rump/rumpvfs/t_etfs.c       Sat Jun 19 13:40:09 2010 +0000
+++ b/tests/rump/rumpvfs/t_etfs.c       Sat Jun 19 13:43:29 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_etfs.c,v 1.2 2010/06/19 13:40:09 pooka Exp $ */
+/*     $NetBSD: t_etfs.c,v 1.3 2010/06/19 13:43:29 pooka Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -139,8 +139,8 @@
        ATF_REQUIRE_EQ(rump_sys_read(tfd, buf, sizeof(buf)), 64*512);
        memset(cmpbuf, 1, sizeof(cmpbuf));
        ATF_REQUIRE_EQ(memcmp(buf, cmpbuf, 64*512), 0);
-       rump_sys_close(tfd);
-       rump_pub_etfs_remove(TESTPATH1);
+       ATF_REQUIRE_EQ(rump_sys_close(tfd), 0);
+       ATF_REQUIRE_EQ(rump_pub_etfs_remove(TESTPATH1), 0);
 
        ATF_REQUIRE_EQ(rump_pub_etfs_register(TESTPATH2, "./disk2.img",
            RUMP_ETFS_BLK), 0);
@@ -149,8 +149,8 @@
        ATF_REQUIRE_EQ(rump_sys_read(tfd, buf, sizeof(buf)), 128*512);
        memset(cmpbuf, 2, sizeof(cmpbuf));
        ATF_REQUIRE_EQ(memcmp(buf, cmpbuf, 128*512), 0);
-       rump_sys_close(tfd);
-       rump_pub_etfs_remove(TESTPATH1);
+       ATF_REQUIRE_EQ(rump_sys_close(tfd), 0);
+       ATF_REQUIRE_EQ(rump_pub_etfs_remove(TESTPATH2), 0);
 
        rump_sys_reboot(RUMP_RB_DUMP, NULL);
 }



Home | Main Index | Thread Index | Old Index