5 unshift @INC, '../lib';
6 require Config; import Config;
7 if ($Config{'extensions'} !~ /\bFile\/Glob\b/i) {
14 print "not ok 1\n" unless $loaded;
16 use File::Glob qw(:glob csh_glob);
20 # Test the actual use of the case sensitivity tags, via csh_glob()
21 import File::Glob ':nocase';
22 @a = csh_glob("lib/G*.t"); # At least glob-basic.t glob-case.t glob-global.t
23 print "not " unless @a >= 3;
26 # This may fail on systems which are not case-PRESERVING
27 import File::Glob ':case';
28 @a = csh_glob("lib/G*.t"); # None should be uppercase
29 print "not " unless @a == 0;
32 # Test the explicit use of the GLOB_NOCASE flag
33 @a = bsd_glob("lib/G*.t", GLOB_NOCASE);
34 print "not " unless @a >= 3;
37 # Test Win32 backslash nastiness...
38 if ($^O ne 'MSWin32') {
39 print "ok 5\nok 6\nok 7\n";
42 @a = File::Glob::glob("lib\\g*.t");
43 print "not " unless @a >= 3;
46 @a = File::Glob::glob("\\[\\]", GLOB_QUOTE);
48 print "# returned @a\nnot " unless @a == 1;
50 @a = bsd_glob("lib\\*", GLOB_QUOTE);
51 print "not " if @a == 0;