aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorroot <root@rbsd.ankarstrom.se>2021-04-25 14:30:59 +0000
committerroot <root@rbsd.ankarstrom.se>2021-04-25 14:30:59 +0000
commit17b219d8c1c3116158f14b8005561be2de11e7c4 (patch)
tree513fbdded77f24e5c6b8969c70c442370200c822 /t
parentf17c54a6e8c837c7de221e717830c1e9df9ce74f (diff)
downloadApache-Inject-17b219d8c1c3116158f14b8005561be2de11e7c4.tar.gz
Skip tests if run as root
Otherwise, I suspect App::Cpan will not be able to install the module without workarounds on the part of the user.
Diffstat (limited to 't')
-rwxr-xr-xt/SMOKE2
-rw-r--r--t/TEST.PL11
2 files changed, 8 insertions, 5 deletions
diff --git a/t/SMOKE b/t/SMOKE
index ede8397..9f53a8f 100755
--- a/t/SMOKE
+++ b/t/SMOKE
@@ -1,6 +1,6 @@
#!/usr/local/bin/perl
# WARNING: this file is generated, do not edit
-# generated on Sun Apr 25 00:00:31 2021
+# generated on Sun Apr 25 14:30:31 2021
# 01: /usr/local/lib/perl5/site_perl/mach/5.32/Apache/TestConfig.pm:1003
# 02: /usr/local/lib/perl5/site_perl/mach/5.32/Apache/TestConfig.pm:1095
# 03: /usr/local/lib/perl5/site_perl/mach/5.32/Apache/TestSmoke.pm:775
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);
+}