about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--t/lei-watch.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/lei-watch.t b/t/lei-watch.t
index 86fa6649..a881fbb9 100644
--- a/t/lei-watch.t
+++ b/t/lei-watch.t
@@ -25,7 +25,7 @@ test_lei(sub {
                 lei_ok 'daemon-pid'; chomp(my $pid = $lei_out);
                 skip 'missing /proc/$PID/fd', 1 if !-d "/proc/$pid/fd";
                 my @ino = grep {
-                        readlink($_) =~ /\binotify\b/
+                        (readlink($_) // '') =~ /\binotify\b/
                 } glob("/proc/$pid/fd/*");
                 is(scalar(@ino), 1, 'only one inotify FD');
                 my $ino_fd = (split('/', $ino[0]))[-1];