1#!/bin/sh 2 3# Check -t option. 4 5. "${srcdir=.}/init.sh" 6 7run_prog_skip_if_failed date +%T > /dev/null 8run_prog ./sleep 0 9 10t0="$(date +%T)" 11run_strace -t -eexecve $args 12t1="$(date +%T)" 13 14EXPECTED="$LOG.expected" 15cat > "$EXPECTED" << __EOF__ 16($t0|$t1) execve\\("\\./sleep", \\["\\./sleep", "0"\\], \\[/\\* [[:digit:]]+ vars \\*/\\]\\) = 0 17__EOF__ 18 19match_grep "$LOG" "$EXPECTED" 20rm -f "$EXPECTED" 21