readlinkat.test: use readlink.test

* tests/readlink.test (syscall): Initialize from $0.
* tests/readlinkat.test: Source readlink.test.
diff --git a/tests/readlink.test b/tests/readlink.test
index 579b83f..48ab7e1 100755
--- a/tests/readlink.test
+++ b/tests/readlink.test
@@ -4,7 +4,7 @@
 
 . "${srcdir=.}/init.sh"
 
-syscall=readlink
+syscall=${ME_%.test}
 target=$syscall.c
 link=$syscall.link
 OUT="$LOG.out"
diff --git a/tests/readlinkat.test b/tests/readlinkat.test
index d3ce0f8..229c8e1 100755
--- a/tests/readlinkat.test
+++ b/tests/readlinkat.test
@@ -2,20 +2,4 @@
 
 # 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 "$LOG" "$OUT"
-
-rm -f -- "$OUT" $link
-
-exit 0
+. "${srcdir=.}/readlink.test"