Fix the test for rumpfs on amd64 by adding a creation mode to open().
thanks to gson for the prod.
This commit is contained in:
parent
d8de3b9ec7
commit
16eee2303a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: t_io.c,v 1.10 2012/03/20 18:20:49 njoly Exp $ */
|
||||
/* $NetBSD: t_io.c,v 1.11 2013/06/12 12:08:08 pooka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2010 The NetBSD Foundation, Inc.
|
||||
|
@ -122,11 +122,11 @@ overwritebody(const atf_tc_t *tc, off_t count, bool dotrunc)
|
|||
|
||||
REQUIRE_LIBC(buf = malloc(count), NULL);
|
||||
FSTEST_ENTER();
|
||||
RL(fd = rump_sys_open("testi", O_CREAT | O_RDWR));
|
||||
RL(fd = rump_sys_open("testi", O_CREAT | O_RDWR, 0666));
|
||||
ATF_REQUIRE_EQ(rump_sys_write(fd, buf, count), count);
|
||||
RL(rump_sys_close(fd));
|
||||
|
||||
RL(fd = rump_sys_open("testi", O_CREAT | O_RDWR));
|
||||
RL(fd = rump_sys_open("testi", O_RDWR));
|
||||
if (dotrunc)
|
||||
RL(rump_sys_ftruncate(fd, 0));
|
||||
ATF_REQUIRE_EQ(rump_sys_write(fd, buf, count), count);
|
||||
|
|
Loading…
Reference in New Issue