Source-Changes-HG archive

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

[src/trunk]: src/tests/kernel Add another set of problematic offsets from the...



details:   https://anonhg.NetBSD.org/src/rev/ad401adcb693
branches:  trunk
changeset: 758799:ad401adcb693
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Nov 15 22:01:44 2010 +0000

description:
Add another set of problematic offsets from the quoted thread.

diffstat:

 tests/kernel/t_posix_fadvise.c |  17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r a4535078109b -r ad401adcb693 tests/kernel/t_posix_fadvise.c
--- a/tests/kernel/t_posix_fadvise.c    Mon Nov 15 21:56:46 2010 +0000
+++ b/tests/kernel/t_posix_fadvise.c    Mon Nov 15 22:01:44 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_posix_fadvise.c,v 1.3 2010/11/11 15:08:07 pooka Exp $ */
+/* $NetBSD: t_posix_fadvise.c,v 1.4 2010/11/15 22:01:44 pooka Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_posix_fadvise.c,v 1.3 2010/11/11 15:08:07 pooka Exp $");
+__RCSID("$NetBSD: t_posix_fadvise.c,v 1.4 2010/11/15 22:01:44 pooka Exp $");
 
 #include <sys/fcntl.h>
 
@@ -136,7 +136,20 @@
        CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_WILLNEED), 0);
        CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_NOREUSE), 0);
 
+       CE(rump_sys_posix_fadvise(rfd,
+           INT64_MAX-getpagesize(), getpagesize(), POSIX_FADV_NORMAL), 0);
+       CE(rump_sys_posix_fadvise(rfd,
+           INT64_MAX-getpagesize(), getpagesize(), POSIX_FADV_SEQUENTIAL), 0);
+       CE(rump_sys_posix_fadvise(rfd,
+           INT64_MAX-getpagesize(), getpagesize(), POSIX_FADV_RANDOM), 0);
+       CE(rump_sys_posix_fadvise(rfd,
+           INT64_MAX-getpagesize(), getpagesize(), POSIX_FADV_WILLNEED), 0);
+       CE(rump_sys_posix_fadvise(rfd,
+           INT64_MAX-getpagesize(), getpagesize(), POSIX_FADV_NOREUSE), 0);
+
        atf_tc_expect_signal(-1, "http://mail-index.netbsd.org/source-changes-d/2010/11/11/msg002508.html";);
+       CE(rump_sys_posix_fadvise(rfd,
+           INT64_MAX-getpagesize(), getpagesize(), POSIX_FADV_DONTNEED), 0);
        CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_DONTNEED), 0);
 #undef CE
 }



Home | Main Index | Thread Index | Old Index