debug: Add fortify syslog tests
commit446e2c935a174d33fa9974859628e3c44156bca9
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 21 Dec 2023 18:59:18 +0000 (21 15:59 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 29 Dec 2023 13:57:03 +0000 (29 10:57 -0300)
treea277eaed0a4596546948ec187171a62c00a19bdd
parent121aad59dea8431cae5cd3efb6ba588d0ddc52b4
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>
debug/Makefile
debug/tst-fortify-syslog.c [new file with mode: 0644]