@@ -31,6 +31,8 @@
#include "tst_safe_prw.h"
#define CHUNK 64
+#define MNTPOINT "mntpoint"
+#define FNAME MNTPOINT"/file"
static char buf[CHUNK];
static char initbuf[CHUNK * 2];
@@ -99,7 +101,7 @@ static void setup(void)
{
memset(&buf, 0x61, CHUNK);
- fd = SAFE_OPEN("file", O_RDWR | O_CREAT, 0644);
+ fd = SAFE_OPEN(FNAME, O_RDWR | O_CREAT, 0644);
}
static void cleanup(void)
@@ -115,4 +117,7 @@ static struct tst_test test = {
.test = verify_pwritev,
.min_kver = "2.6.30",
.needs_tmpdir = 1,
+ .mntpoint = MNTPOINT,
+ .mount_device = 1,
+ .all_filesystems = 1,
};
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com> --- testcases/kernel/syscalls/pwritev/pwritev01.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)