[PATCH] Fix tst-writev on non-4K page size
David Miller
davem@davemloft.net
Mon Aug 15 15:12:00 GMT 2011
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 \
More information about the Libc-alpha
mailing list