Reworked and committed with r29255. $ prove -v t\pmc\io.t t\pmc\io.... 1..45 not ok 1 - IO on some invalid types # TODO IO on some invalid types
# Failed (TODO) test 'IO on some invalid types' # at t\pmc\io.t line 38. # Exited with error code: 1 # Received: # Undef ok 1 # Undef ok 2 # UndefCannot put to non-PIO PMC # current instr.: 'test' pc 87 (D:\src\Parrot\windows-x86-msvc_9.0\t\pmc\io_1.pir:30) # called from Sub 'main' pc 11 (D:\src\Parrot\windows-x86-msvc_9.0\t\pmc\io_1.pir:3) # # Expected: # Undef ok 1 # Undef ok 2 # Undef ok 3 # null ok 1 # null ok 2 # null ok 3 # Integer ok 1 # Integer ok 2 # Integer ok 3 # String ok 1 # String ok 2 # String ok 3 # ok 2 - open/close ok 3 - timely destruction ok 4 - getfd/fdopen ok 5 - fdopen - no close ok 6 - get_bool ok 7 - read on invalid fh should throw exception ok 8 # SKIP clone not finished yet ok 9 - open and readline ok 10 - open and readline, no final newline ok 11 - open & print ok 12 - 3-arg open ok 13 - open and close ok 14 - file contents ok 15 - append ok 16 - append file contents ok 17 - write to file ok 18 - file contents ok 19 - PIO_flush on buffer full ok 20 - buffered file contents ok 21 - turn off buffering ok 22 - unbuffered file contents ok 23 - I/O buffering ok 24 - standard file descriptors ok 25 - printerr ok 26 - puts method ok 27 - puts method - PIR ok 28 - callmethod puts ok 29 - seek/tell ok 30 - 32bit seek: exception ok 31 - 64bit seek: exception ok 32 - peek ok 33 - peek on an empty file ok 34 - layer names ok 35 - layer push, pop ok 36 - substr after reading from file ok 37 - multiple substr after reading from file not ok 38 - read on null PMC throws exception # TODO not yet implemented # Failed (TODO) test 'read on null PMC throws exception' # at t\pmc\io.t line 729. # '' # doesn't match '/some crazy exception/ # ' ok 39 - utf8 read layer ok 40 - utf8 read layer - readline ok 41 - utf8 read layer, read parts ok 42 - string read/write layer ok 43 - PIO.slurp() - classmeth ok 44 - PIO.slurp() - object ok 45 - stat failed ok All tests successful. Files=1, Tests=45, 2 wallclock secs ( 0.02 usr + 0.01 sys = 0.03 CPU) Result: PASS Ron