strace/tests/strace-t.test
Dmitry V. Levin 37fc8e673a Make output of execve/execveat syscall parsers more structured
* execve.c (printargc): Always print the address, format the number
of variables as a comment.
* tests/execve.c: Update expected output.
* tests/execveat.c: Likewise.
* tests/qual_syscall.test: Likewise.
* tests/strace-r.expected: Likewise.
* tests/strace-t.test: Likewise.
* tests/strace-tt.test: Likewise.
* tests/strace-ttt.test: Likewise.
* tests/threads-execve.c: Likewise.
* tests/threads-execve.test: Likewise.
2017-04-24 19:22:11 +00:00

19 lines
357 B
Bash
Executable File

#!/bin/sh
# Check -t option.
. "${srcdir=.}/init.sh"
run_prog_skip_if_failed date +%T > /dev/null
run_prog ../sleep 0
t0="$(date +%T)"
run_strace -t -eexecve $args
t1="$(date +%T)"
cat > "$EXP" << __EOF__
($t0|$t1) execve\\("\\.\\./sleep", \\["\\.\\./sleep", "0"\\], 0x[[:xdigit:]]* /\\* [[:digit:]]* vars \\*/\\) = 0
__EOF__
match_grep "$LOG" "$EXP"