6 if ($ENV{PERL_CORE} and $Config{'extensions'} !~ /\bIO\b/ && $^O ne 'VMS') {
13 if ($ENV{PERL_CORE}) {
14 require("../../t/test.pl");
17 require("./t/test.pl");
21 END { unlink "./__taint__$$" }
24 my $x = new IO::File "> ./__taint__$$" || die("Cannot open ./__taint__$$\n");
28 $x = new IO::File "< ./__taint__$$" || die("Cannot open ./__taint__$$\n");
29 chop(my $unsafe = <$x>);
30 eval { kill 0 * $unsafe };
32 skip($^O) if $^O eq 'MSWin32' or $^O eq 'NetWare';
33 like($@, '^Insecure');
37 # We could have just done a seek on $x, but technically we haven't tested
39 $x = new IO::File "< ./__taint__$$" || die("Cannot open ./__taint__$$\n");
41 ok(!$?); # Calling the method worked
43 eval { kill 0 * $unsafe };
44 unlike($@,'^Insecure');
48 todo_skip("Known bug in 5.10.0",2) if $] >= 5.010 and $] < 5.010_001;
50 # this will segfault if it fails
53 { my $dummy = index 'foo', PVBM }
55 eval { IO::Handle::untaint(PVBM) };
58 eval { IO::Handle::untaint(\PVBM) };