1 /* $NetBSD: t_io.c,v 1.1 2010/11/12 17:33:28 pooka Exp $ */
5 #include <sys/socket.h>
14 #include <puffsdump.h>
20 #include <rump/rump.h>
21 #include <rump/rump_syscalls.h>
23 #include "../../h_macros.h"
24 #include "../common/h_fsmacros.h"
26 #define MAKEOPTS(...) \
27 char *theopts[] = {NULL, "-s", __VA_ARGS__, "dtfs", "n/a", NULL}
30 ATF_TC_HEAD(nocache
, tc
)
33 atf_tc_set_md_var(tc
, "descr", "tests large i/o without page cache");
36 ATF_TC_BODY(nocache
, tc
)
38 MAKEOPTS("-o", "nopagecache");
43 FSTEST_CONSTRUCTOR_FSPRIV(tc
, puffs
, args
, theopts
);
46 RL(fd
= rump_sys_open("afile", O_CREAT
| O_RDWR
, 0755));
47 RL(rump_sys_write(fd
, data
, sizeof(data
)));
51 FSTEST_DESTRUCTOR(tc
, puffs
, args
);
58 ATF_TP_ADD_TC(tp
, nocache
);
60 return atf_no_error();