summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2001-08-26 13:03:05 +0100
committerAbhijit Menon-Sen <ams@wiw.org>2001-08-26 14:38:52 +0000
commit444e39b5b9f36cd0f60283ca4c60fc108157921f (patch)
tree3839f4bd140922499634cbcc430d48aaac147ae9 /t
parent22b06de744d1b685a9c1a1b45c185462e07e12ee (diff)
downloadperl-444e39b5b9f36cd0f60283ca4c60fc108157921f.tar.gz
t/io/binmode.t
Message-Id: <20010826120305.C4950@plum.flirble.org> (Also a nitpick in #11752 to t/op/universal.t) p4raw-id: //depot/perl@11754
Diffstat (limited to 't')
-rw-r--r--t/io/binmode.t18
-rwxr-xr-xt/op/universal.t2
2 files changed, 14 insertions, 6 deletions
diff --git a/t/io/binmode.t b/t/io/binmode.t
index 76fd5a7779..34a462d9f9 100644
--- a/t/io/binmode.t
+++ b/t/io/binmode.t
@@ -5,16 +5,24 @@ BEGIN {
@INC = '../lib';
}
-
use Test::More tests => 8;
+use Config;
ok( binmode(STDERR), 'STDERR made binary' );
-ok( binmode(STDERR, ":unix"), ' with unix discipline' );
+if ($Config{useperlio}) {
+ ok( binmode(STDERR, ":unix"), ' with unix discipline' );
+} else {
+ ok(1, ' skip unix discipline for -Uuseperlio' );
+}
ok( binmode(STDERR, ":raw"), ' raw' );
ok( binmode(STDERR, ":crlf"), ' and crlf' );
# If this one fails, we're in trouble. So we just bail out.
ok( binmode(STDOUT), 'STDOUT made binary' ) || exit(1);
-ok( binmode(STDOUT, ":unix"), ' with unix discipline' );
-ok( binmode(STDERR, ":raw"), ' raw' );
-ok( binmode(STDERR, ":crlf"), ' and crlf' );
+if ($Config{useperlio}) {
+ ok( binmode(STDOUT, ":unix"), ' with unix discipline' );
+} else {
+ ok(1, ' skip unix discipline for -Uuseperlio' );
+}
+ok( binmode(STDOUT, ":raw"), ' raw' );
+ok( binmode(STDOUT, ":crlf"), ' and crlf' );
diff --git a/t/op/universal.t b/t/op/universal.t
index a67c77f2c3..efda2a59be 100755
--- a/t/op/universal.t
+++ b/t/op/universal.t
@@ -68,7 +68,7 @@ test ! $a->can("sleep");
test my $ref = $a->can("drink"); # returns a coderef
test $a->$ref("tea") eq "drinking tea"; # ... which works
test $ref = $a->can("sing");
-eval { $a->sing };
+eval { $a->$ref() };
test $@; # ... but not if no actual subroutine
test (!Cedric->isa('Programmer'));