diff options
Diffstat (limited to 'lib/open.t')
-rw-r--r-- | lib/open.t | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/open.t b/lib/open.t index 50292929c8..905308dabb 100644 --- a/lib/open.t +++ b/lib/open.t @@ -7,7 +7,7 @@ BEGIN { require Config; import Config; } -use Test::More tests => 16; +use Test::More tests => 17; # open::import expects 'open' as its first argument, but it clashes with open() sub import { @@ -171,6 +171,15 @@ EOE "checking syswrite() output on :utf8 streams by reading it back in"); } +{ + use open IN => ':non-existent'; + eval { + require Anything; + }; + like($@, qr/Recursive call/i, + "test for an endless loop in PerlIO_find_layer"); +} + END { 1 while unlink "utf8"; 1 while unlink "a"; |