use strict;
use vars qw($VERSION);
-$VERSION = '0.68';
+$VERSION = '0.70';
$VERSION = eval $VERSION; # make the alpha version come out as a number
# Make Test::Builder thread-safe for ithreads.
my $maybe_fh = shift;
return 0 unless defined $maybe_fh;
- return 1 if ref \$maybe_fh eq 'GLOB'; # its a glob
+ return 1 if ref $maybe_fh eq 'GLOB'; # its a glob
+ return 1 if ref \$maybe_fh eq 'GLOB'; # its a glob ref
- return eval { $maybe_fh->isa("GLOB") } ||
- eval { $maybe_fh->isa("IO::Handle") } ||
+ return eval { $maybe_fh->isa("IO::Handle") } ||
# 5.5.4's tied() and can() doesn't like getting undef
eval { (tied($maybe_fh) || '')->can('TIEHANDLE') };
}
use vars qw($VERSION @ISA @EXPORT %EXPORT_TAGS $TODO);
-$VERSION = '0.68';
+$VERSION = '0.70';
$VERSION = eval $VERSION; # make the alpha version come out as a number
use Test::Builder::Module;
use strict 'vars';
use vars qw($VERSION @ISA @EXPORT);
-$VERSION = '0.68';
+$VERSION = '0.70';
$VERSION = eval $VERSION; # make the alpha version come out as a number
use Test::Builder::Module;
+0.70 Thu Mar 15 15:53:05 PDT 2007
+ Bug Fixes
+ * The change to is_fh() in 0.68 broke the case where a reference to
+ a tied filehandle is used for perl 5.6 and back. This made the tests
+ puke their guts out.
+
+0.69 Wed Mar 14 06:43:35 PDT 2007
+ Test fixes
+ - Minor filename compatibility fix to t/fail-more.t [rt.cpan.org 25428]
+
0.68 Tue Mar 13 17:27:26 PDT 2007
Bug fixes
* If your code has a $SIG{__DIE__} handler in some cases functions like
}
use strict;
-use Test::More tests => 8;
+use Test::More tests => 10;
use TieOut;
ok( !Test::Builder->is_fh("foo"), 'string is not a filehandle' );
tie *OUT, 'TieOut';
ok( Test::Builder->is_fh(*OUT) );
+ok( Test::Builder->is_fh(\*OUT) );
+
+SKIP: {
+ skip "*TIED_HANDLE{IO} doesn't work in this perl", 1
+ unless defined *OUT{IO};
+ ok( Test::Builder->is_fh(*OUT{IO}) );
+}