blob: ff563361382f5e7b7d5eb31cde299bb8c06acae2 [file] [log] [blame]
#!/bin/sh
# Check readlink syscall decoding.
. "${srcdir=.}/init.sh"
syscall=readlink
target=$syscall.c
link=$syscall.link
OUT="$LOG.out"
ln -snf $target $link ||
framework_skip_ 'failed to create a symlink'
run_prog > /dev/null
run_strace -e $syscall -xx -s3 $args > "$OUT"
match_diff "$OUT" "$LOG"
rm -f -- "$OUT" $link
exit 0