This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
ignore cygwin files that cannot be stat()ed in t/op/stat.t
authorChristian Walde <walde.christian@gmail.com>
Sat, 3 Oct 2020 23:41:54 +0000 (01:41 +0200)
committerKarl Williamson <khw@cpan.org>
Sun, 4 Oct 2020 13:47:06 +0000 (07:47 -0600)
commita872d7f5896d004d64d4f74895b2f157486f57a9
tree8b54dbd4040270dbc7aad00303790d6519fea595
parent905f23138370cd73d7691f94787e7301a8a6998d
ignore cygwin files that cannot be stat()ed in t/op/stat.t

This is a fix for github cygwin vm smoke runs, specifically the issue in:
https://github.com/Perl/perl5/issues/18193

The original cause of the issue was an update github did to their windows
vm image with version 20200920.1, wherein the status of a console being
attached is now unclear.

This has affected other projects as well
(example: https://github.com/actions/virtual-environments/issues/1679 )
and, relevant for us, shows itself as /dev/con(in|out|sole) not being
stat()able under cygwin.

As such, the fix for the test is to, under cygwin, identify such files,
and remove them from the dataset altogether before checking stat operations
on them.

(As a small freebie, this also dumps diagnostics of the check on failure.)
t/op/stat.t