Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/union Simplify test: there's no reason to mount 2x ...
details: https://anonhg.NetBSD.org/src/rev/b6cf40df7a1d
branches: trunk
changeset: 760745:b6cf40df7a1d
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Jan 12 17:16:24 2011 +0000
description:
Simplify test: there's no reason to mount 2x ffs.
diffstat:
tests/fs/union/t_basic.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diffs (45 lines):
diff -r a94b85eb2038 -r b6cf40df7a1d tests/fs/union/t_basic.c
--- a/tests/fs/union/t_basic.c Wed Jan 12 17:14:34 2011 +0000
+++ b/tests/fs/union/t_basic.c Wed Jan 12 17:16:24 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_basic.c,v 1.5 2010/11/07 17:51:18 jmmv Exp $ */
+/* $NetBSD: t_basic.c,v 1.6 2011/01/12 17:16:24 pooka Exp $ */
#include <sys/types.h>
#include <sys/mount.h>
@@ -59,9 +59,7 @@
}
#define IMG1 "atf1.img"
-#define IMG2 "atf2.img"
#define DEV1 "/dev/fs1"
-#define DEV2 "/dev/fs2"
#define newfs_base "newfs -F -s 10000 "
ATF_TC_BODY(basic, tc)
@@ -72,12 +70,9 @@
if (system(newfs_base IMG1) == -1)
atf_tc_fail_errno("create img1");
- if (system(newfs_base IMG2) == -1)
- atf_tc_fail_errno("create img2");
rump_init();
- rump_pub_etfs_register(DEV1, IMG1, RUMP_ETFS_BLK);
- rump_pub_etfs_register(DEV2, IMG2, RUMP_ETFS_BLK);
+ rump_pub_etfs_register(DEV1, IMG1, RUMP_ETFS_BLK);
if (rump_sys_mkdir("/mp1", 0777) == -1)
atf_tc_fail_errno("mp1");
@@ -89,11 +84,6 @@
if (rump_sys_mount(MOUNT_FFS, "/mp1", 0, &args, sizeof(args)) == -1)
atf_tc_fail_errno("could not mount ffs1");
- memset(&args, 0, sizeof(args));
- args.fspec = __UNCONST(DEV2);
- if (rump_sys_mount(MOUNT_FFS, "/mp2", 0, &args, sizeof(args)) == -1)
- atf_tc_fail_errno("could not mount tmpfs2");
-
xput_tfile("/mp1/tensti");
memset(&unionargs, 0, sizeof(unionargs));
Home |
Main Index |
Thread Index |
Old Index