[perl #8262] //g loops infinitely on tainted data
[p5sagit/p5-mst-13.2.git] / t / io / open.t
index e12b447..f08eed5 100755 (executable)
@@ -234,7 +234,7 @@ like( $@, qr/Bad filehandle:\s+afile/,          '       right error' );
     }
 
     # used to try to open a file [perl #17830]
-    ok( open(my $stdin,  "<&", fileno STDIN),   'dup fileno(STDIN) into lexical fh');
+    ok( open(my $stdin,  "<&", fileno STDIN),   'dup fileno(STDIN) into lexical fh') or _diag $!;
 }
 
 SKIP: {