diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-04-04 22:59:42 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-04-05 03:54:02 -0400 |
commit | 16a11d0b67121521e4dbe12b4741217f97034c28 (patch) | |
tree | 8d995bd748e0c7e99c182cd1cb90dd8bbb90b586 /tests/open_static-1.sh | |
parent | tests: fix openat arg parsing (diff) | |
download | sandbox-16a11d0b67121521e4dbe12b4741217f97034c28.tar.gz sandbox-16a11d0b67121521e4dbe12b4741217f97034c28.tar.bz2 sandbox-16a11d0b67121521e4dbe12b4741217f97034c28.zip |
tests: add some tracing tests
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/open_static-1.sh')
-rwxr-xr-x | tests/open_static-1.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/open_static-1.sh b/tests/open_static-1.sh new file mode 100755 index 0000000..99c24ec --- /dev/null +++ b/tests/open_static-1.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# basic open tests with static binaries +[ "${at_xfail}" = "yes" ] && exit 77 # see trace-0 + +addwrite $PWD +open_static-0 3 ok "O_WRONLY|O_CREAT" 0666 || exit 1 +open_static-0 3 ok O_RDONLY 0666 || exit 1 + +export SANDBOX_LOG=$PWD/sb.log +mkdir deny || exit 1 +adddeny $PWD/deny +open_static-0 -1 deny/not-ok O_WRONLY 0666 +test -e sb.log |