]> granicus.if.org Git - strace/blob - tests/execve-v.test
tests: extend coverage of execve and execveat syscalls
[strace] / tests / execve-v.test
1 #!/bin/sh
2
3 # Check verbose decoding of execve syscall.
4
5 . "${srcdir=.}/init.sh"
6
7 check_prog grep
8 run_prog > /dev/null
9
10 OUT="$LOG.out"
11 EXP="$LOG.exp"
12 run_strace -veexecve $args > "$EXP"
13
14 # Filter out execve() call made by strace.
15 grep -F test.execve < "$LOG" > "$OUT"
16 match_diff "$OUT" "$EXP"
17
18 rm -f "$EXP" "$OUT"