glob-case.t revision 7c478bd95313f5f23a4c958a745db2134aa03244
#!./perl
BEGIN {
chdir 't' if -d 't';
} else {
}
print "1..0\n";
exit 0;
}
print "1..7\n";
}
END {
}
$loaded = 1;
print "ok 1\n";
# Test the actual use of the case sensitivity tags, via csh_glob()
print "ok 2\n";
# This may fail on systems which are not case-PRESERVING
print "ok 3\n";
# Test the explicit use of the GLOB_NOCASE flag
@a = bsd_glob($pat, GLOB_NOCASE);
print "ok 4\n";
# Test Win32 backslash nastiness...
print "ok 5\nok 6\nok 7\n";
}
else {
print "ok 5\n";
print "ok 6\n";
print "not " if @a == 0;
print "ok 7\n";
}