File: timerslack.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 (13 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
no strict 'subs';
use warnings;

use Test::More tests => 3;
use Linux::Prctl qw(:constants :functions);

SKIP: {
    skip "set_timerslack not available", 3 unless Linux::Prctl->can('set_timerslack');
    is(get_timerslack, 50000, "Checking default timerslack value");
    is(set_timerslack(75000), 0, "Setting new timerslack value");
    is(get_timerslack, 75000, "Checking new timerslack value");
}