summaryrefslogtreecommitdiff
path: root/t/io/open.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-25 18:23:36 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-25 18:23:36 +0000
commit9e8aaafae76f3e93cdd988b30c2ca5828dde25ea (patch)
tree5677226d4702574df3182be2e4790d4289625398 /t/io/open.t
parent2dbc26b0e5e04e99354cad43b71ba2e3ca09d9ca (diff)
downloadperl-9e8aaafae76f3e93cdd988b30c2ca5828dde25ea.tar.gz
Take away the perlio-requiring tests..
p4raw-id: //depot/perl@15498
Diffstat (limited to 't/io/open.t')
-rwxr-xr-xt/io/open.t58
1 files changed, 1 insertions, 57 deletions
diff --git a/t/io/open.t b/t/io/open.t
index d85c9c5f4e..fa8b10ac6c 100755
--- a/t/io/open.t
+++ b/t/io/open.t
@@ -10,7 +10,7 @@ $| = 1;
use warnings;
$Is_VMS = $^O eq 'VMS';
-plan tests => 106;
+plan tests => 91;
my $Perl = which_perl();
@@ -223,59 +223,3 @@ like( $@, qr/Bad filehandle:\s+afile/, ' right error' );
ok( open(STDOUT, ">&", $stdout), 'restore dupped STDOUT from lexical fh');
}
-# magic temporary file via 3 arg open with undef
-{
- ok( open(my $x,"+<",undef), 'magic temp file via 3 arg open with undef');
- ok( defined fileno($x), ' fileno' );
-
- select $x;
- ok( (print "ok\n"), ' print' );
-
- select STDOUT;
- ok( seek($x,0,0), ' seek' );
- is( scalar <$x>, "ok\n", ' readline' );
- ok( tell($x) >= 3, ' tell' );
-
- # test magic temp file over STDOUT
- open OLDOUT, ">&STDOUT" or die "cannot dup STDOUT: $!";
- my $status = open(STDOUT,"+<",undef);
- open STDOUT, ">&OLDOUT" or die "cannot dup OLDOUT: $!";
- # report after STDOUT is restored
- ok($status, ' re-open STDOUT');
-}
-
-# in-memory open
-{
- my $var;
- ok( open(my $x,"+<",\$var), 'magic in-memory file via 3 arg open with \\$var');
- ok( defined fileno($x), ' fileno' );
-
- select $x;
- ok( (print "ok\n"), ' print' );
-
- select STDOUT;
- ok( seek($x,0,0), ' seek' );
- is( scalar <$x>, "ok\n", ' readline' );
- ok( tell($x) >= 3, ' tell' );
-
- SKIP: {
- local $TODO = "in-memory stdhandles not implemented yet";
-
- # test in-memory open over STDOUT
- open OLDOUT, ">&STDOUT" or die "cannot dup STDOUT: $!";
- #close STDOUT;
- my $status = open(STDOUT,">",\$var);
- my $error = "$!" unless $status; # remember the error
- open STDOUT, ">&OLDOUT" or die "cannot dup OLDOUT: $!";
- print "# $error\n" unless $status;
-
- # report after STDOUT is restored
- ok($status, ' open STDOUT into in-memory var');
-
- # test in-memory open over STDERR
- open OLDERR, ">&STDERR" or die "cannot dup STDERR: $!";
- #close STDERR;
- ok( open(STDERR,">",\$var), ' open STDERR into in-memory var');
- open STDERR, ">&OLDERR" or die "cannot dup OLDERR: $!";
- }
-}