4 require Config; import Config;
5 if ($Config{'extensions'} !~ /\bSys\/Hostname\b/) {
6 print "1..0 # Skip: Sys::Hostname was not built\n";
13 use Test::More tests => 2;
20 skip "No hostname available", 1
21 if $@ =~ /Cannot get host name/;
22 isnt($host, undef, "got a hostname");
27 eval { hostname("dummy"); };
29 qr/hostname\(\) does not accepts arguments \(it used to silently discard any provided\)/,
30 "hostname no longer accepts arguments"