diff --git a/tests/rump/rumpvfs/t_etfs.c b/tests/rump/rumpvfs/t_etfs.c index 55e3fee17cf7..080b6510ab32 100644 --- a/tests/rump/rumpvfs/t_etfs.c +++ b/tests/rump/rumpvfs/t_etfs.c @@ -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_TC_BODY(reregister_blk, tc) 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_TC_BODY(reregister_blk, tc) 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); }