diff options
Diffstat (limited to 't/TEST.PL')
-rw-r--r-- | t/TEST.PL | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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); +} |