Source-Changes-HG archive

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

[src/trunk]: src/tests/fs/vfs Give this a chance of working on non-4kB pagesize.



details:   https://anonhg.NetBSD.org/src/rev/fa658a0a3dce
branches:  trunk
changeset: 760349:fa658a0a3dce
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Jan 03 09:35:33 2011 +0000

description:
Give this a chance of working on non-4kB pagesize.
from martin's sparc64 test run

diffstat:

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

diffs (18 lines):

diff -r 8e08dd1f0837 -r fa658a0a3dce tests/fs/vfs/t_io.c
--- a/tests/fs/vfs/t_io.c       Mon Jan 03 09:14:21 2011 +0000
+++ b/tests/fs/vfs/t_io.c       Mon Jan 03 09:35:33 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_io.c,v 1.5 2011/01/01 20:43:01 pooka Exp $   */
+/*     $NetBSD: t_io.c,v 1.6 2011/01/03 09:35:33 pooka Exp $   */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
        RL(rump_sys_pwrite(fd, buf, 1, getpagesize()));
 
        memset(buf, 'B', sizeof(buf));
-       RL(rump_sys_pwrite(fd, buf, 2, 0xfff));
+       RL(rump_sys_pwrite(fd, buf, 2, getpagesize()-1));
 
        REQUIRE_LIBC(b2 = malloc(2 * getpagesize()), NULL);
        REQUIRE_LIBC(b3 = malloc(2 * getpagesize()), NULL);



Home | Main Index | Thread Index | Old Index