File: timing.t

package info (click to toggle)
liblinux-prctl-perl 1.6.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 400 kB
  • sloc: perl: 163; ansic: 19; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 331 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
use strict;
use warnings;

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

is(get_timing, TIMING_STATISTICAL, "Checking default timing");
is(set_timing(TIMING_TIMESTAMP), -1, "Setting timing to timestamp should fail");
is(set_timing(TIMING_STATISTICAL), 0, "Setting timing to statistical should not fail");