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:
parent
7700272844
commit
ef9900e7c1
@ -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
1
tests/strace-E.expected
Normal file
@ -0,0 +1 @@
|
||||
execve\("\./sleep", \["\./sleep", "0"\], \[.*"option_E_var=OPTION_E_VAL".*\]\) = 0
|
9
tests/strace-E.test
Executable file
9
tests/strace-E.test
Executable 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
|
Loading…
Reference in New Issue
Block a user