aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-08-15 23:04:49 -0400
committerMike Frysinger <vapier@gentoo.org>2010-08-15 23:04:49 -0400
commit858cbf61fd789fb9fef949aed4e741e815f7f2d0 (patch)
tree03586c58c39e238b191da1876c12c975d3a653cf /tests/unlink-1.sh
parentsandbox.bashrc: don't load portage env when testing (diff)
downloadsandbox-858cbf61fd789fb9fef949aed4e741e815f7f2d0.tar.gz
sandbox-858cbf61fd789fb9fef949aed4e741e815f7f2d0.tar.bz2
sandbox-858cbf61fd789fb9fef949aed4e741e815f7f2d0.zip
tests: force a saner default env
Rather than having tests rely on implicit behavior (current dir is not listed anywhere thus it is denied), force tests to declare explicit deny paths when desired. This way `make check` works even when it is run under a path that is granted write access by default (such as the tempdirs). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/unlink-1.sh')
-rwxr-xr-xtests/unlink-1.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unlink-1.sh b/tests/unlink-1.sh
index 74d4403..62e23ea 100755
--- a/tests/unlink-1.sh
+++ b/tests/unlink-1.sh
@@ -3,5 +3,6 @@
[ "${at_xfail}" = "yes" ] && exit 77 # see trace-0
export SANDBOX_LOG=$PWD/sb.log
+adddeny "${PWD}"
unlink-0 -1 f
test -e sb.log