File: hostname.t

package info (click to toggle)
libperl4-corelibs-perl 0.005-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 368 kB
  • sloc: perl: 2,546; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 180 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use warnings;
use strict;

use Test::More tests => 2;

require_ok "hostname.pl";

my $host = eval { &hostname };
if($@) {
	like $@, qr/Cannot get host name/;
} else {
	ok 1;
}

1;