$extra = 1
if $st ;
- plan(tests => 675 + $extra) ;
+ plan(tests => 666 + $extra) ;
}
sub myGZreadFile
like $@, mkEvalErr("^$CompressClass: output buffer is read-only") ;
my($out, $gz);
- $out = "" ;
- $a = new $CompressClass $out ;
- is $!, "No such file or directory", '$! = "no such file or directory"';
- is $$Error, "cannot open file '': No such file or directory";
-
- $out = undef ;
- $a = new $CompressClass $out ;
- is $!, "No such file or directory", '$! = "no such file or directory"';
- is $$Error, "cannot open file '': No such file or directory";
my $x ;
$gz = new $CompressClass(\$x);
eval ' $gz->write({})' ;
like $@, mkEvalErr("^${CompressClass}::write: not a scalar reference");
- #like $@, mkEvalErr("^${CompressClass}::write: input parameter not a filename, filehandle, array ref or scalar ref");
eval ' $gz->syswrite("abc", 1, 5)' ;
like $@, mkEvalErr("^${CompressClass}::write: offset outside string");
title "Testing $UncompressClass Errors";
my $out = "" ;
- $a = new $UncompressClass $out ;
- is $!, "No such file or directory", '$! = "no such file or directory"';
- is $$UnError, "cannot open file '': No such file or directory";
-
- $out = undef ;
- $a = new $UncompressClass $out ;
- is $!, "No such file or directory", '$! = "no such file or directory"';
- is $$UnError, "cannot open file '': No such file or directory";
my $lex = new LexFile my $name ;
ok ! -e $name, " $name does not exist";
eval qq[\$a = new $UncompressClass "$name" ;] ;
- is $!, "No such file or directory", '$! = "no such file or directory"';
- is $$UnError, "cannot open file '$name': No such file or directory";
+ is lc($!), "no such file or directory", '$! = "no such file or directory"';
my $gc ;
my $guz = new $CompressClass(\$gc);