1#!/bin/sh 2 3# Check -ttt option. 4 5. "${srcdir=.}/init.sh" 6 7run_prog_skip_if_failed date +%s > /dev/null 8run_prog ../sleep 0 9 10s0="$(date +%s)" 11run_strace -ttt -eexecve $args 12s1="$(date +%s)" 13 14s="$s0" 15t_reg= 16while [ "$s" -le "$s1" ]; do 17 [ -z "$t_reg" ] && t_reg="$s" || t_reg="$t_reg|$s" 18 s=$(($s + 1)) 19done 20 21cat > "$EXP" << __EOF__ 22($t_reg)\\.[[:digit:]]{6} execve\\("\\.\\./sleep", \\["\\.\\./sleep", "0"\\], 0x[[:xdigit:]]* /\\* [[:digit:]]+ vars \\*/\\) = 0 23__EOF__ 24 25match_grep "$LOG" "$EXP" 26