3 @INC = '../lib' if -d '../lib' && -d '../ext';
6 require Config; import Config;
12 skip_all('no SysV semaphores on this platform') if !$Config{d_sem};
16 local $SIG{__WARN__} = sub { push @warnings, $_[0] };
17 local $SIG{SYS} = sub { skip_all("SIGSYS caught") } if exists $SIG{SYS};
18 my $test = (semctl(-1,0,0,0))[0];
19 ok(!defined $test, "erroneous semctl list slice yields undef");
22 is(scalar @warnings, 0, "no warnings from erroneous semctl list slice")
23 or diag("warnings found: @warnings");