diff options
author | ngie <ngie@FreeBSD.org> | 2014-10-23 08:29:09 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-10-23 08:29:09 +0000 |
commit | 4c4ec283aa7d04cf04ab16213b7269fce89e4b62 (patch) | |
tree | 57151119d15475c4bcabc604ede62991c3a02487 /contrib/netbsd-tests | |
parent | 5911499dc80d8bb2e16bfcab40e5a9d22f4996ed (diff) | |
download | FreeBSD-src-4c4ec283aa7d04cf04ab16213b7269fce89e4b62.zip FreeBSD-src-4c4ec283aa7d04cf04ab16213b7269fce89e4b62.tar.gz |
Omit the mprotect_exec testcase on FreeBSD
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/sys/t_mprotect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/sys/t_mprotect.c b/contrib/netbsd-tests/lib/libc/sys/t_mprotect.c index c534e11..ee345aa 100644 --- a/contrib/netbsd-tests/lib/libc/sys/t_mprotect.c +++ b/contrib/netbsd-tests/lib/libc/sys/t_mprotect.c @@ -44,7 +44,9 @@ __RCSID("$NetBSD: t_mprotect.c,v 1.3 2011/07/20 22:53:44 jym Exp $"); #include <atf-c.h> +#ifdef __NetBSD__ #include "../common/exec_prot.h" +#endif static long page = 0; static int pax_global = -1; @@ -160,6 +162,7 @@ ATF_TC_BODY(mprotect_err, tc) ATF_REQUIRE(errno == EINVAL); } +#ifdef __NetBSD__ ATF_TC(mprotect_exec); ATF_TC_HEAD(mprotect_exec, tc) { @@ -242,6 +245,7 @@ ATF_TC_BODY(mprotect_exec, tc) break; } } +#endif ATF_TC(mprotect_pax); ATF_TC_HEAD(mprotect_pax, tc) @@ -351,7 +355,9 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, mprotect_access); ATF_TP_ADD_TC(tp, mprotect_err); +#ifdef __NetBSD__ ATF_TP_ADD_TC(tp, mprotect_exec); +#endif ATF_TP_ADD_TC(tp, mprotect_pax); ATF_TP_ADD_TC(tp, mprotect_write); |