6 use Test::More tests => 4;
8 use POSIX qw<SIGUSR1 SIGUSR2>;
12 local $SIG{'USR1'} = sub { ++$a };
13 local $SIG{'USR2'} = sub { ++$b };
16 is($a, 1, 'SIGUSR1 triggers $SIG{USR1}');
17 is($b, 0, 'SIGUSR1 doesn\'t trigger $SIG{USR2}');
20 is($a, 1, 'SIGUSR2 doesn\'t trigger $SIG{USR1}');
21 is($b, 1, 'SIGUSR2 triggers $SIG{USR2}');