diff options
author | ngie <ngie@FreeBSD.org> | 2017-02-09 21:29:18 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-02-09 21:29:18 +0000 |
commit | 237637fa313dcd7c981f44ea35296cda3be981cb (patch) | |
tree | e8cf419be1d38e5ddc43e32a0db1706f4748676f | |
parent | fec4dffc3487939185515738cb54d7b0e89a1921 (diff) | |
download | FreeBSD-src-237637fa313dcd7c981f44ea35296cda3be981cb.zip FreeBSD-src-237637fa313dcd7c981f44ea35296cda3be981cb.tar.gz |
MFC r276527:
Don't install h_raw if dealing with clang 3.5.0+ to unbreak the tests2 Jenkins
job
The h_raw application doesn't do proper bounds checking without the option
being supplied via the build, which means that it doesn't throw signals and
fail as expected
PR: 196430
-rwxr-xr-x | contrib/netbsd-tests/lib/libc/ssp/t_ssp.sh | 3 | ||||
-rw-r--r-- | lib/libc/tests/ssp/Makefile | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/ssp/t_ssp.sh b/contrib/netbsd-tests/lib/libc/ssp/t_ssp.sh index 2986ccf..e535e3e 100755 --- a/contrib/netbsd-tests/lib/libc/ssp/t_ssp.sh +++ b/contrib/netbsd-tests/lib/libc/ssp/t_ssp.sh @@ -361,6 +361,9 @@ raw_head() raw_body() { prog="$(atf_get_srcdir)/h_raw" + # Begin FreeBSD + [ -x $prog ] || atf_skip "$prog is missing; skipping testcase" + # End FreeBSD h_pass "$prog 9" # Begin FreeBSD diff --git a/lib/libc/tests/ssp/Makefile b/lib/libc/tests/ssp/Makefile index cf767ce..7bc8660 100644 --- a/lib/libc/tests/ssp/Makefile +++ b/lib/libc/tests/ssp/Makefile @@ -26,7 +26,11 @@ PROGS+= h_getcwd PROGS+= h_memcpy PROGS+= h_memmove PROGS+= h_memset +# This testcase doesn't run properly when not compiled with -fsantize=bounds +# with clang, which is currently contingent on a compiler_rt update +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 30500 PROGS+= h_raw +.endif PROGS+= h_read PROGS+= h_readlink PROGS+= h_snprintf |