File: pdeathsig.t

package info (click to toggle)
liblinux-prctl-perl 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 368 kB
  • ctags: 768
  • sloc: perl: 166; ansic: 19; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
use strict;
use warnings;

use Test::More tests => 5;
use POSIX qw(SIGHUP);
use Linux::Prctl qw(:constants :functions);

is(get_pdeathsig, 0, "Checking the default pdeathsig");
is(set_pdeathsig(SIGHUP), 0, "Setting pdeathsig to SIGHUP");
is(get_pdeathsig, SIGHUP, "Checking whether pdeasthsig is SIGHUP");
is(set_pdeathsig(0), 0, "Setting pdeathsig to 0");
is(get_pdeathsig, 0, "Checking whether pdeasthsig is 0");