aboutsummaryrefslogtreecommitdiff
path: root/t/TEST.PL
diff options
context:
space:
mode:
Diffstat (limited to 't/TEST.PL')
-rw-r--r--t/TEST.PL11
1 files changed, 7 insertions, 4 deletions
diff --git a/t/TEST.PL b/t/TEST.PL
index 6c1c41c..b1778b2 100644
--- a/t/TEST.PL
+++ b/t/TEST.PL
@@ -2,9 +2,12 @@
use strict;
use warnings FATAL => 'all';
-
-use lib qw(lib);
-
+use lib qw/lib/;
use Apache::TestRunPerl ();
-Apache::TestRunPerl->new->run(@ARGV);
+if ($> == 0) {
+ print STDERR "Skipping tests, as they must be run as an unprivileged user\n";
+}
+else {
+ Apache::TestRunPerl->new->run(@ARGV);
+}