5 . "${srcdir=.}/init.sh"
7 run_prog ../readv > /dev/null
11 local sortby sortopts sedexpr
16 run_strace -c -w -S "$sortby" ../readv > /dev/null
17 sed -r -n -e "$sedexpr" < "$LOG" > "$OUT"
20 fail_ "$STRACE $args output mismatch"
21 LC_ALL=C sort -c $sortopts "$OUT" || {
24 fail_ "$STRACE $args output not sorted properly"
28 c='[[:space:]]+([^[:space:]]+)'
29 test_c calls '-n -r' '/^[[:space:]]+[0-9]/ s/^'"$c$c$c$c"'[[:space:]].*/\4/p'
30 test_c name '' '/^[[:space:]]+[0-9]/ s/^'"$c$c$c$c"'([[:space:]]+[0-9]+)?'"$c"'$/\6/p'