]> granicus.if.org Git - strace/blob - tests/readlink.test
tests: convert readlink.test and readlinkat.test from match_awk to match_diff
[strace] / tests / readlink.test
1 #!/bin/sh
2
3 # Check readlink syscall decoding.
4
5 . "${srcdir=.}/init.sh"
6
7 syscall=readlink
8 target=$syscall.c
9 link=$syscall.link
10 OUT="$LOG.out"
11
12 ln -snf $target $link ||
13         framework_skip_ 'failed to create a symlink'
14
15 run_prog > /dev/null
16 run_strace -e $syscall -xx -s3 $args > "$OUT"
17 match_diff "$OUT" "$LOG"
18
19 rm -f -- "$OUT" $link
20
21 exit 0