Skip to content

Commit

Permalink
[JVM] Remove (most) fudges for R#1541
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Feb 19, 2018
1 parent 6b22923 commit a066ace
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions S16-io/eof.t
Expand Up @@ -88,17 +88,16 @@ subtest '.eof works right even when we seek past end and back' => {
subtest '.eof on empty files' => {
plan 3;
with make-temp-file(:content('')).open {
#?rakudo.jvm todo 'https://github.com/rakudo/rakudo/issues/1541'
is-deeply .eof, False, 'eof is False before any reads';
.read: 42;
#?rakudo.jvm todo 'some problem related to read(?) https://github.com/rakudo/rakudo/issues/1541'
is-deeply .eof, True, 'eof is True after a read';
}
with "/proc/$*PID/status".IO -> $p {
subtest "reading from '$p'" => {
plan 3;
when not $p.e { skip "don't have '$p' available", 3 }
with $p.open {
#?rakudo.jvm 2 todo 'https://github.com/rakudo/rakudo/issues/1541'
is-deeply .eof, False, 'eof is False before any reads';
cmp-ok .get, &[!~~], Nil, '.get reads something';
.slurp;
Expand Down
2 changes: 0 additions & 2 deletions S32-io/io-cathandle.t
Expand Up @@ -163,15 +163,13 @@ subtest 'eof method' => {

subtest 'with 3 handles to empty files' => { plan 2;
with IO::CatHandle.new(make-files '', '', '') {
#?rakudo.jvm todo 'https://github.com/rakudo/rakudo/issues/1541'
is-deeply .eof, False, 'before reads';
.slurp;
is-deeply .eof, True, 'after reads';
}
}
subtest 'with 3 handles to empty files (bin)' => { plan 2;
with IO::CatHandle.new(:bin, make-files '', '', '') {
#?rakudo.jvm todo 'https://github.com/rakudo/rakudo/issues/1541'
is-deeply .eof, False, 'before reads';
.slurp;
is-deeply .eof, True, 'after reads';
Expand Down

0 comments on commit a066ace

Please sign in to comment.