Module Name:    src
Committed By:   pooka
Date:           Mon Jan  3 09:35:33 UTC 2011

Modified Files:
        src/tests/fs/vfs: t_io.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/fs/vfs/t_io.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/fs/vfs/t_io.c
diff -u src/tests/fs/vfs/t_io.c:1.5 src/tests/fs/vfs/t_io.c:1.6
--- src/tests/fs/vfs/t_io.c:1.5	Sat Jan  1 20:43:01 2011
+++ src/tests/fs/vfs/t_io.c	Mon Jan  3 09:35:33 2011
@@ -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);

Reply via email to