Fix 003_extrafiles.pl test for the Windows
authorAndrew Dunstan <[email protected]>
Tue, 30 Jan 2024 22:09:44 +0000 (17:09 -0500)
committerAndrew Dunstan <[email protected]>
Tue, 30 Jan 2024 22:12:20 +0000 (17:12 -0500)
commit2acba01ddc2a6c9fd15f519ed24b1d8894762e41
treed3a624071711b6f49d5f98b284a3078e27e4c386
parent54717fcaad759312b2ff8588e146977f529e7798
Fix 003_extrafiles.pl test for the Windows

File::Find converts backslashes to slashes in the newer Perl versions.
See: https://github.com/Perl/perl5/commit/414f14df98cb1c9a20f92c5c54948b67c09f072d

So, do the same conversion for Windows before comparing paths. To
support all Perl versions, always convert them on Windows regardless of
the Perl's version.

Author: Nazir Bilal Yavuz <[email protected]>

Backpatch to all live branches
src/bin/pg_rewind/t/003_extrafiles.pl