diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-04-24 17:39:00 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-04-24 17:39:00 +0000 |
commit | 92d29cee5ff815b05b81b877528e4c77e73881c9 (patch) | |
tree | 1887469b52eec03299be2ab643c8a5310d73622e /t/lib | |
parent | 85e0ebd8793b17cfbac766abc03b5fff57b2b2cd (diff) | |
download | perl-92d29cee5ff815b05b81b877528e4c77e73881c9.tar.gz |
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@5937
Diffstat (limited to 't/lib')
-rw-r--r-- | t/lib/charnames.t | 10 | ||||
-rwxr-xr-x | t/lib/glob-basic.t | 6 |
2 files changed, 11 insertions, 5 deletions
diff --git a/t/lib/charnames.t b/t/lib/charnames.t index 7643390126..566baf35b0 100644 --- a/t/lib/charnames.t +++ b/t/lib/charnames.t @@ -42,15 +42,21 @@ EOE $encoded_be = "\320\261"; $encoded_alpha = "\316\261"; $encoded_bet = "\327\221"; + +sub to_bytes { + use bytes; + my $bytes = shift; +} + { use charnames ':full'; - print "not " unless "\N{CYRILLIC SMALL LETTER BE}" eq $encoded_be; + print "not " unless to_bytes("\N{CYRILLIC SMALL LETTER BE}") eq $encoded_be; print "ok 4\n"; use charnames qw(cyrillic greek :short); - print "not " unless "\N{be},\N{alpha},\N{hebrew:bet}" + print "not " unless to_bytes("\N{be},\N{alpha},\N{hebrew:bet}") eq "$encoded_be,$encoded_alpha,$encoded_bet"; print "ok 5\n"; } diff --git a/t/lib/glob-basic.t b/t/lib/glob-basic.t index 47280831a9..0719193d3a 100755 --- a/t/lib/glob-basic.t +++ b/t/lib/glob-basic.t @@ -27,7 +27,7 @@ $ENV{PATH} = "/bin"; delete @ENV{BASH_ENV, CDPATH, ENV, IFS}; @correct = (); if (opendir(D, ".")) { - @correct = grep { !/^\.\.?$/ } sort readdir(D); + @correct = grep { !/^\./ } sort readdir(D); closedir D; } @a = File::Glob::glob("*", 0); @@ -39,7 +39,7 @@ print "ok 2\n"; # look up the user's home directory # should return a list with one item, and not set ERROR -if ($^O ne 'MSWin32' || $^O ne 'VMS') { +if ($^O ne 'MSWin32' && $^O ne 'VMS') { eval { ($name, $home) = (getpwuid($>))[0,7]; 1; @@ -99,7 +99,7 @@ print "ok 7\n"; @a = File::Glob::glob( '{TES*,doesntexist*,a,b}', - GLOB_BRACE | GLOB_NOMAGIC + GLOB_BRACE | GLOB_NOMAGIC | ($^O eq 'VMS' ? GLOB_NOCASE : 0) ); unless (@a == 3 and $a[0] eq ($^O eq 'VMS'? 'test.' : 'TEST') |