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

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

my $name = basename($^X);
is(get_name, $name, "Name initially should be $name");
is(set_name("p3rl"), 0, "Setting name to p3rl");
is(get_name, "p3rl", "Name should now be p3rl");