File: non_existent_path.t

package info (click to toggle)
libfilesys-notify-simple-perl 0.14-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 128 kB
  • sloc: perl: 191; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 274 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use Test::More;

$ENV{PERL_FNS_NO_OPT} = 1;
require Filesys::Notify::Simple;

my $fs = Filesys::Notify::Simple->new(["/xxx/nonexistent"]);

eval {
    $SIG{ALRM} = sub { die "Alarm\n" };
    alarm 1;
    $fs->wait(sub {});
};

is $@, "Alarm\n";

done_testing;