aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-30 19:58:20 -0400
committerMike Frysinger <vapier@gentoo.org>2009-03-31 01:12:28 -0400
commit02288b2c0fa1b0976359bd8c7d96e84f9d69f0ce (patch)
treeb1143225b7811a6c0f856f1edd767efa1eb07411 /tests/symlinkat-1.sh
parentlibsandbox: handle more *at functions (diff)
downloadsandbox-02288b2c0fa1b0976359bd8c7d96e84f9d69f0ce.tar.gz
sandbox-02288b2c0fa1b0976359bd8c7d96e84f9d69f0ce.tar.bz2
sandbox-02288b2c0fa1b0976359bd8c7d96e84f9d69f0ce.zip
tests: add basic functionality tests
Make sure many of the functions work in their simplest form: - link - linkat - mkdirat - mkfifo - mkfifoat - mknod - mknodat - rename - renameat - symlink - symlinkat Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/symlinkat-1.sh')
-rwxr-xr-xtests/symlinkat-1.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/symlinkat-1.sh b/tests/symlinkat-1.sh
new file mode 100755
index 0000000..24a3d99
--- /dev/null
+++ b/tests/symlinkat-1.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+# basic functionality check
+
+addwrite $PWD
+
+touch file
+symlinkat-0 0 file AT_FDCWD sym || exit 1
+[ -e file -a -L sym ]