This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix tst-writev on non-4K page size
- From: David Miller <davem at davemloft dot net>
- To: drepper at gmail dot com
- Cc: libc-alpha at sourceware dot org
- Date: Sun, 14 Aug 2011 23:34:33 -0700 (PDT)
- Subject: [PATCH] Fix tst-writev on non-4K page size
This is the best I could come up with, otherwise the test fails
on any architecture where the page size is not 4096.
Unless you can come up with a better fix, please apply.
Thanks.
2011-08-14 David S. Miller <davem@firepit.lan>
* sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
artificual limit depends upon the system page size.
diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile
index 63ef597..af53f70 100644
--- a/sysdeps/unix/sysv/linux/Makefile
+++ b/sysdeps/unix/sysv/linux/Makefile
@@ -22,7 +22,7 @@ sysdep_routines += sysctl clone llseek umount umount2 readahead \
eventfd eventfd_read eventfd_write prlimit
CFLAGS-gethostid.c = -fexceptions
-CFLAGS-tst-writev.c += -DARTIFICIAL_LIMIT=0x7ffff000
+CFLAGS-tst-writev.c += "-DARTIFICIAL_LIMIT=0x80000000-__getpagesize()"
sysdep_headers += sys/mount.h sys/acct.h sys/sysctl.h \
sys/klog.h sys/kdaemon.h \