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