]> git.cameronkatri.com Git - cgit.git/commit
tests: skip tests if strace is not functional
authorChristian Hesse <mail@eworm.de>
Wed, 11 Dec 2019 09:55:24 +0000 (10:55 +0100)
committerChristian Hesse <mail@eworm.de>
Wed, 11 Dec 2019 10:04:02 +0000 (11:04 +0100)
commitca98c9e7bf31617efc3ff7d3575efe5bba3cde1a
tree6e8d96857a61296c3c34c1a95e180226e3c7a828
parentd8e5dd25a0d2e32ef3453a96112eea817336e4d7
tests: skip tests if strace is not functional

Chances are that strace is available but not functional due to
restricted permissions:

strace: test_ptrace_get_syscall_info: PTRACE_TRACEME: Operation not permitted
strace: ptrace(PTRACE_TRACEME, ...): Operation not permitted
+++ exited with 1 +++

Just skip the tests then.

Signed-off-by: Christian Hesse <mail@eworm.de>
tests/t0109-gitconfig.sh