Skip to content

Commit

Permalink
Unfudge standard handle reopen tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Jul 17, 2017
1 parent 3f594b0 commit f739f03
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions S32-io/open.t
Expand Up @@ -421,20 +421,18 @@ subtest '.open with "-" as path can open closed $*IN/$*OUT' => {
is-deeply $*IN.encoding, 'utf8-c8', 'changed encoding';
}

#skip 'RT#131755'
skip 'RT#131755', 1;
# is_run 「
# $*IN = IO::Handle.new: :path('-'.IO);
# $*OUT = IO::Handle.new: :path('-'.IO);
# my $w = '-'.IO.open: :w;
# my $r = '-'.IO.open;
# $r.get.say;
# $*IN.slurp(:close).say;
# $w.put: 'meow $w';
# $*OUT.put: 'meow $*OUT';
# 」, "foo\nbar\nber", {
# :out("foo\nbar\nber\nmeow \$w\nmeow \$*OUT\n"), :err(''), :0status
# }, 「can use unopened handle with path '-'.IO」;
is_run
$*IN = IO::Handle.new: :path('-'.IO);
$*OUT = IO::Handle.new: :path('-'.IO);
my $w = '-'.IO.open: :w;
my $r = '-'.IO.open;
$r.get.say;
$*IN.slurp(:close).say;
$w.put: 'meow $w';
$*OUT.put: 'meow $*OUT';
, "foo\nbar\nber", {
:out("foo\nbar\nber\nmeow \$w\nmeow \$*OUT\n"), :err(''), :0status
}, can use unopened handle with path '-'.IO;
}

# vim: ft=perl6

0 comments on commit f739f03

Please sign in to comment.