On Tue Oct 07 13:11:24 2014, barto...@gmx.de wrote: > This looks better now: > > $ perl6-m foo > Could not open foo. Failed to open file: no such file or directory > $ perl6-p foo > Could not open foo. Unable to open filehandle from path 'foo': No such > file or directory(2) > $ perl6-j foo > Could not open foo. java.nio.file.NoSuchFileException: foo > > So, I'd say closable with tests. (Though I don't know how a good test > would look like.)
use the is_run helper function from Test::Util - you can exec out to the same perl6 that was used to run the tests with an unlikely to be found filename.pl, then check the output in STDERR. (that it contains "Could not open <file>") -- Will "Coke" Coleda