blob: 289704cf8e323da1fb18232f76e035de722b5a27 [file] [log] [blame]
#!/bin/sh
# Check readlinkat syscall decoding.
. "${srcdir=.}/init.sh"
syscall=readlinkat
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