about summary refs log tree commit homepage
path: root/t/lei-daemon.t
diff options
context:
space:
mode:
Diffstat (limited to 't/lei-daemon.t')
-rw-r--r--t/lei-daemon.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/lei-daemon.t b/t/lei-daemon.t
index 35e059b9..84e2791d 100644
--- a/t/lei-daemon.t
+++ b/t/lei-daemon.t
@@ -74,7 +74,8 @@ test_lei({ daemon_only => 1 }, sub {
         chomp $lei_out;
         is($lei_out, $new_pid, 'PID unchanged after -0/-CHLD');
 
-        if ('socket inaccessible') {
+        SKIP: { # socket inaccessible
+                skip "cannot test connect EPERM as root", 3 if $> == 0;
                 chmod 0000, $sock or BAIL_OUT "chmod 0000: $!";
                 lei_ok('help', \'connect fail, one-shot fallback works');
                 like($lei_err, qr/\bconnect\(/, 'connect error noted');