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 "$LOG" "$OUT" 18 19 rm -f -- "$OUT" $link 20 21 exit 0 22