Allow using Unix-domain sockets on Windows in tests
Peter Eisentraut <peter@eisentraut.org>
Allow using Unix-domain sockets on Windows in tests The test suites currently don't use Unix-domain sockets on Windows. This optionally allows enabling that by setting the environment variable PG_TEST_USE_UNIX_SOCKETS. This should currently be considered experimental. In particular, pg_regress.c contains some comments that the cleanup code for Unix-domain sockets doesn't work correctly under Windows, which hasn't been an problem until now. But it's good enough for locally supervised testing of the functionality. Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com> Discussion: https://www.postgresql.org/message-id/flat/54bde68c-d134-4eb8-5bd3-8af33b72a010@2ndquadrant.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_ctl/t/001_start_stop.pl | modified | +1 −1 |
| src/test/authentication/t/001_password.pl | modified | +3 −4 |
| src/test/authentication/t/002_saslprep.pl | modified | +3 −4 |
| src/test/perl/PostgresNode.pm | modified | +2 −2 |
| src/test/perl/TestLib.pm | modified | +7 −1 |
| src/test/regress/pg_regress.c | modified | +26 −14 |
Discussion
- Unix-domain socket support on Windows 22 messages · 2019-08-07 → 2020-03-30