summaryrefslogtreecommitdiff
path: root/tests/uname.test
blob: 03fe30cd8be77f34c5615b65e7580554872f48de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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"