File: unalign.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 (16 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;

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

my $arch = uname;

SKIP: {
    skip "get_unalign/set_unalign are ia64 specific", 4, unless $arch eq 'ia64';
    for(UNALIGN_NOPRINT, UNALIGN_SIGBUS) {
        is(set_unalign($_), 0, "Setting unalign to $_");
        is(get_unalign, $_, "Checking whether unalign is $_");
    }
}