Since warnings were enabled in this test file, skip one spurious warning
being generated. S_ISBLK() is being called purely to test run-time
loading; so it's being called without an arg, which now triggers an
'uninitialized value' warning.
like ($@, qr/^Unimplemented: POSIX::fgets\(\): Use method IO::Handle::gets\(\) instead/,
"check its redef message");
-eval { use strict; POSIX->import("S_ISBLK"); my $x = S_ISBLK };
+eval {
+ use strict;
+ no warnings 'uninitialized'; # S_ISBLK normally has an arg
+ POSIX->import("S_ISBLK");
+ my $x = S_ISBLK
+};
unlike( $@, qr/Can't use string .* as a symbol ref/, "Can import autoloaded constants" );
SKIP: {