t/lei-daemon.t | 3 ++- diff --git a/t/lei-daemon.t b/t/lei-daemon.t index 35e059b97cd956b8df20531ed98ad5ab0cb54de0..84e2791d6fcc5a0839dd882659cbf9b241776016 100644 --- a/t/lei-daemon.t +++ b/t/lei-daemon.t @@ -74,7 +74,8 @@ lei_ok('daemon-pid'); 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');