strace/tests/uname.test

19 lines
311 B
Plaintext
Raw Normal View History

#!/bin/sh
# Check uname syscall decoding.
. "${srcdir=.}/init.sh"
check_prog uniq
run_prog > /dev/null
run_strace -v -euname $args > "$EXP"
uniq < "$LOG" > "$OUT"
run_prog "./$NAME" abbrev > /dev/null
run_strace -euname $args >> "$EXP"
uniq < "$LOG" >> "$OUT"
match_diff "$OUT" "$EXP"
rm -f "$OUT" "$EXP"