filetest.t revision 7c478bd95313f5f23a4c958a745db2134aa03244
#!./perl
BEGIN {
chdir 't' if -d 't';
}
use Config;
# these two should be kept in sync with the pragma itself
# if hint bits are changed there, other things *will* break
my $hint_bits = 0x00400000;
my $error = "filetest: the only implemented subpragma is 'access'.\n";
# can't use it yet, because of the import death
# and here's one culprit, right here
# now try the normal usage
# can't check $^H here; it's lexically magic (see perlvar)
# the test harness unintentionally hoards the goodies for itself
# and import again, to see it here
# and now get rid of it
# there'll be a compilation aborted failure here, with the eval string
eval "no filetest 'fake pragma'";
eval "use filetest 'bad subpragma'";
eval "use filetest";
eval "no filetest";
SKIP: {
# A real test for filetest.
my $skip_eff_user_tests = (!$Config{d_setreuid} && !$Config{d_setresuid})
||
eval {
close T;
}
};
{
SKIP: {
}
}
{
SKIP: {
}
}
# cleanup
}