svn commit: r317672 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Tue May 2 06:16:36 UTC 2017
Author: pho
Date: Tue May 2 06:16:35 2017
New Revision: 317672
URL: https://svnweb.freebsd.org/changeset/base/317672
Log:
Simplify test termination, return exit status 0 and added casts for round_page().
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/misc/mmap26.sh
Modified: user/pho/stress2/misc/mmap26.sh
==============================================================================
--- user/pho/stress2/misc/mmap26.sh Tue May 2 06:06:12 2017 (r317671)
+++ user/pho/stress2/misc/mmap26.sh Tue May 2 06:16:35 2017 (r317672)
@@ -53,11 +53,9 @@ sleep 1
(cd /tmp; /tmp/mmap26 /tmp/mmap26.inputfile)
-while ps auxww | grep -v grep | grep -qw swap; do
- killall -9 swap 2>/dev/null
-done
+while pkill -9 swap; do :; done
rm -f /tmp/mmap26 /tmp/mmap26.inputfile /tmp/mmap26.core
-exit
+exit 0
EOF
#include <sys/fcntl.h>
@@ -103,7 +101,8 @@ test(void)
p[len - 1] = 1;
/* one byte past EOF */
- if (round_page(p + len) == round_page(p + len - 1)) {
+ if (round_page((unsigned long)&p[len]) ==
+ round_page((unsigned long)&p[len - 1])) {
fprintf(stderr, "Expect: Segmentation fault (core dumped)\n");
c = p[len];
}
More information about the svn-src-user
mailing list