Skip to content

Commit 103cc9c

Browse files
committed
Adjust throw-in-read-in-a-mode test
The test is not[^1] part of 6.c-errata. We don't actually bother to read if we reached EOF, which is the case with empty file the test uses, so no throwage would occur just Nil/empty buf would be returned (which I'm personally fine with). Adjust test to use .slurp for reading which still does throw in :a open mode. [1] 091931a717aa0507d04fcef10b81
1 parent 0527e51 commit 103cc9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S32-io/open.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ LEAVE unlink PATH;
204204
ok defined($fh), 'can open existing file in :a mode';
205205
$fh.print('cats say meow');
206206

207-
throws-like { $fh.get }, Exception, 'trying to read in :a mode throws';
207+
throws-like { $fh.slurp }, Exception, 'trying to read in :a mode throws';
208208
$fh.close;
209209

210210
$fh = open PATH, :r;

0 commit comments

Comments
 (0)