https://bugs.winehq.org/show_bug.cgi?id=51719
--- Comment #2 from Andres Freund andres@winehq.anarazel.de ---
I've sent a patch that fixes attached test. Marking as fixed.
Awesome. I can confirm that this doesn't just fix the testcase, but also allows a cross-built postgres to at least get as far as creating the data directory (i.e. initdb.exe succeeds).