tests: add unregistered and no syscall tests
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 23 Feb 2024 15:38:46 +0000 (10:38 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 23 Feb 2024 20:17:16 +0000 (15:17 -0500)
commit01bd794da7063662e3429915a3dcd1506d4efaea
tree38a19d51ca0ebba7854bab25e4441800f94fc1a1
parent9de60bd2c5cd1a82ba1d29634b6d708c99fff1b9
tests: add unregistered and no syscall tests

Add tests to validate the state of the public symbols when no
registration has occured and when the rseq syscall is unavailable.

The no syscall test uses seccomp to deny access to rseq, libseccomp is
added as an optionnal build dependency.

Change-Id: I0bf6249fa13bd39af80c21a9d2892cd132644e69
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 files changed:
.gitignore
configure.ac
tests/Makefile.am
tests/disable-rseq-syscall.c [new file with mode: 0644]
tests/no_syscall_test.c [new file with mode: 0644]
tests/no_syscall_test_cxx.cpp [new file with mode: 0644]
tests/run_no_syscall_test.tap [new file with mode: 0755]
tests/run_no_syscall_test_cxx.tap [new file with mode: 0755]
tests/run_unregistered_test.tap [new file with mode: 0755]
tests/run_unregistered_test_cxx.tap [new file with mode: 0755]
tests/unregistered_test.c [new file with mode: 0644]
tests/unregistered_test_cxx.cpp [new file with mode: 0644]
This page took 0.034365 seconds and 4 git commands to generate.