blob: 289704cf8e323da1fb18232f76e035de722b5a27 [file] [log] [blame]
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +02001#!/bin/sh
2
3# Check readlinkat syscall decoding.
4
5. "${srcdir=.}/init.sh"
6
Dmitry V. Levinc6331882015-08-28 08:43:57 +00007syscall=readlinkat
8target=$syscall.c
9link=$syscall.link
10OUT="$LOG.out"
11
12ln -snf $target $link ||
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +020013 framework_skip_ 'failed to create a symlink'
14
Dmitry V. Levinc6331882015-08-28 08:43:57 +000015run_prog > /dev/null
16run_strace -e $syscall -xx -s3 $args > "$OUT"
17match_diff "$OUT" "$LOG"
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +020018
Dmitry V. Levinc6331882015-08-28 08:43:57 +000019rm -f -- "$OUT" $link
Gleb Fotengauer-Malinovskiy3af6aab2015-08-14 17:49:27 +020020
21exit 0