X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/b5fe5ca2134a9ef76f895fb7bc7abec4e8196b08..4dc171f099f09ddce664c46adaa55908b398396f:/t/lib/warnings/pp_sys diff --git a/t/lib/warnings/pp_sys b/t/lib/warnings/pp_sys index 881e81e..4149117 100644 --- a/t/lib/warnings/pp_sys +++ b/t/lib/warnings/pp_sys @@ -103,6 +103,8 @@ getc() on closed filehandle [pp_getc] + Non-string passed as bitmask [pp_sselect] + __END__ # pp_sys.c [pp_untie] use warnings 'untie' ; @@ -446,3 +448,31 @@ EXPECT getc() on unopened filehandle FOO at - line 3. getc() on closed filehandle STDIN at - line 5. getc() on closed filehandle FH2 at - line 12. +######## +# pp_sys.c [pp_sselect] +use warnings 'misc'; +$x = 1; +select $x, undef, undef, undef; +no warnings 'misc'; +select $x, undef, undef, undef; +EXPECT +Non-string passed as bitmask at - line 4. +######## +opendir FOO, '.'; closedir FOO; +open BAR, '.'; close BAR; +opendir $dh, '.'; closedir $dh; +open $fh, '.'; close $fh; +chdir FOO; +chdir BAR; +chdir $dh; +chdir $fh; +use warnings qw(unopened closed) ; +chdir FOO; +chdir BAR; +chdir $dh; +chdir $fh; +EXPECT +chdir() on unopened filehandle FOO at - line 10. +chdir() on closed filehandle BAR at - line 11. +chdir() on unopened filehandle $dh at - line 12. +chdir() on closed filehandle $fh at - line 13.