Dmitry V. Levin
37fc8e673a
* 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.
28 lines
588 B
Bash
Executable File
28 lines
588 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check -tt option.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog_skip_if_failed date +%s > "$LOG"
|
|
run_prog_skip_if_failed date +%T --date "@$(cat "$LOG")" > /dev/null
|
|
run_prog ../sleep 0
|
|
|
|
s0="$(date +%s)"
|
|
run_strace -tt -eexecve $args
|
|
s1="$(date +%s)"
|
|
|
|
s="$s0"
|
|
t_reg=
|
|
while [ "$s" -le "$s1" ]; do
|
|
t="$(date +%T --date "@$s")"
|
|
[ -z "$t_reg" ] && t_reg="$t" || t_reg="$t_reg|$t"
|
|
s=$(($s + 1))
|
|
done
|
|
|
|
cat > "$EXP" << __EOF__
|
|
($t_reg)\\.[[:digit:]]{6} execve\\("\\.\\./sleep", \\["\\.\\./sleep", "0"\\], 0x[[:xdigit:]]* /\\* [[:digit:]]* vars \\*/\\) = 0
|
|
__EOF__
|
|
|
|
match_grep "$LOG" "$EXP"
|