summaryrefslogtreecommitdiff
path: root/tests/new-exp.tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new-exp.tests')
-rw-r--r--tests/new-exp.tests4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/new-exp.tests b/tests/new-exp.tests
index 31e15468..557d6b44 100644
--- a/tests/new-exp.tests
+++ b/tests/new-exp.tests
@@ -1,3 +1,7 @@
+if (( $UID == 0 )); then
+ echo "new-exp.tests: the test suite should not be run as root" >&2
+fi
+
# must do this because posix mode causes process substitution to be disabled
# and flagged as a syntax error, which causes the shell to exit
set +o posix