diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-12-21 15:59:18 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-12-29 10:57:03 -0300 |
commit | 446e2c935a174d33fa9974859628e3c44156bca9 (patch) | |
tree | a277eaed0a4596546948ec187171a62c00a19bdd /debug/Makefile | |
parent | 121aad59dea8431cae5cd3efb6ba588d0ddc52b4 (diff) | |
download | glibc-446e2c935a174d33fa9974859628e3c44156bca9.tar.gz glibc-446e2c935a174d33fa9974859628e3c44156bca9.tar.xz glibc-446e2c935a174d33fa9974859628e3c44156bca9.zip |
debug: Add fortify syslog tests
It requires to be in a container tests to avoid logging bogus information on the system. The syslog also requires to be checked in a different process because the internal printf call will abort with the internal syslog lock taken (which makes subsequent syslog calls deadlock). Checked on aarch64, armhf, x86_64, and i686. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'debug/Makefile')
-rw-r--r-- | debug/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debug/Makefile b/debug/Makefile index c49e5d86ec..fdc250e209 100644 --- a/debug/Makefile +++ b/debug/Makefile @@ -179,6 +179,7 @@ CPPFLAGS-tst-longjmp_chk3.c += $(no-fortify-source),-D_FORTIFY_SOURCE=1 CPPFLAGS-tst-realpath-chk.c += $(no-fortify-source),-D_FORTIFY_SOURCE=2 CPPFLAGS-tst-chk-cancel.c += $(no-fortify-source),-D_FORTIFY_SOURCE=2 CFLAGS-tst-sprintf-fortify-rdonly.c += $(no-fortify-source),-D_FORTIFY_SOURCE=2 +CFLAGS-tst-fortify-syslog.c += $(no-fortify-source),-D_FORTIFY_SOURCE=2 # _FORTIFY_SOURCE tests. # Auto-generate tests for _FORTIFY_SOURCE for different levels, compilers and @@ -293,6 +294,10 @@ tests-time64 += \ $(tests-all-time64-chk) \ # tests-time64 +tests-container += \ + tst-fortify-syslog \ + # tests-container + ifeq ($(have-ssp),yes) tests += tst-ssp-1 endif |