Date: Tue, 2 May 2017 06:16:35 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r317672 - user/pho/stress2/misc Message-ID: <201705020616.v426GZfS091134@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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]; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705020616.v426GZfS091134>