diff options
Diffstat (limited to 't/lib/hostname.t')
-rwxr-xr-x | t/lib/hostname.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/lib/hostname.t b/t/lib/hostname.t new file mode 100755 index 0000000000..e4ac36521c --- /dev/null +++ b/t/lib/hostname.t @@ -0,0 +1,19 @@ +#!./perl + +BEGIN { + chdir 't' if -d 't'; + @INC = '../lib'; +} + +use Sys::Hostname; + +eval { + $host = hostname; +}; + +if ($@) { + print "1..0\n" if $@ =~ /Cannot get host name/; +} else { + print "1..1\n"; + print "ok 1\n"; +} |