#!./perl
BEGIN {
chdir 't' if -d 't';
}
BEGIN {
eval { my @n = getpwuid 0 };
$haspw = 1 unless $@ && $@ =~ /unimplemented/;
use Config;
}
BEGIN {
# On VMS getpwuid(0) may return [$gid,0] UIC info (which may not exist).
# It is better to use the $< uid for testing on VMS instead.
}
print "1..9\n";
print "ok 1\n";
my $uid_expect = $uid;
}
else {
}
print "ok 2\n";
print "ok 3\n";
print "not "
} else {
}
print "ok 4\n";
print "ok 5\n";
print "ok 6\n";
# The quota and comment fields are unportable.
print "ok 7\n";
print "ok 8\n";
print "ok 9\n";
# The expire field is unportable.
# Testing pretty much anything else is unportable:
# there maybe more than one username with uid 0;
# uid 0's home directory may be "/" or "/root' or something else,
# and so on.