You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
357 B

#!/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"