Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/vfs Fix the test for rumpfs on amd64 by adding a cr...



details:   https://anonhg.NetBSD.org/src/rev/1339a11b15ca
branches:  trunk
changeset: 787355:1339a11b15ca
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jun 12 12:08:08 2013 +0000

description:
Fix the test for rumpfs on amd64 by adding a creation mode to open().
thanks to gson for the prod.

diffstat:

 tests/fs/vfs/t_io.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r e65c3cd1658c -r 1339a11b15ca tests/fs/vfs/t_io.c
--- a/tests/fs/vfs/t_io.c       Wed Jun 12 07:17:23 2013 +0000
+++ b/tests/fs/vfs/t_io.c       Wed Jun 12 12:08:08 2013 +0000
@@ -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 @@
 
        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);



Home | Main Index | Thread Index | Old Index