tests: add strace-E.test

* tests/strace-E.expected: New file.
* tests/strace-E.test: New test.
* tests/Makefile.am (MISC_TESTS): Add it.
(EXTRA_DIST): Add strace-E.expected.
This commit is contained in:
Fei Jie 2016-06-08 10:31:29 +08:00 committed by Dmitry V. Levin
parent 7700272844
commit ef9900e7c1
3 changed files with 12 additions and 0 deletions

View File

@ -651,6 +651,7 @@ MISC_TESTS = \
qual_syscall.test \
redirect.test \
restart_syscall.test \
strace-E.test \
strace-S.test \
strace-T.test \
strace-V.test \
@ -703,6 +704,7 @@ EXTRA_DIST = init.sh run.sh match.awk \
signalfd.expected \
statfs.expected \
statx.sh \
strace-E.expected \
strace-T.expected \
strace-ff.expected \
strace-k.test \

1
tests/strace-E.expected Normal file
View File

@ -0,0 +1 @@
execve\("\./sleep", \["\./sleep", "0"\], \[.*"option_E_var=OPTION_E_VAL".*\]\) = 0

9
tests/strace-E.test Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# Check -E option.
. "${srcdir=.}/init.sh"
run_prog ./sleep 0 > /dev/null
run_strace -E option_E_var=OPTION_E_VAL -v $args
match_grep