summaryrefslogtreecommitdiff
path: root/tests/test-lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-lib.sh')
-rw-r--r--tests/test-lib.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-lib.sh b/tests/test-lib.sh
index a473dfb31..c494e19ff 100644
--- a/tests/test-lib.sh
+++ b/tests/test-lib.sh
@@ -39,6 +39,11 @@ require_ulimit_()
&& skip_test_ "this shell lacks ulimit support"
}
+require_readable_root_()
+{
+ test -r / || skip_test_ "/ is not readable"
+}
+
# Skip the current test if strace is not available or doesn't work.
require_strace_()
{