pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. 7+ messages / 1 participants [nested] [flat]
* pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. @ 2020-07-09 00:25 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-07-09 00:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Tighten up Windows CRLF conversion in our TAP test scripts. The previous approach was to search-and-destroy all \r occurrences no matter what. That seems more likely to hide bugs than anything else; indeed it seems to be hiding one now. Fix things so that we only transform \r\n to \n. Side effects: must do this before, not after, chomp'ing if we're going to chomp, else we'd fail to clean up a trailing \r\n. Also, remove safe_psql's redundant repetition of what psql already did; else it might reduce \r\r\n to \n, which is exactly the scenario I'm hoping to expose. Perhaps this should be back-patched, but for now I'm content to see what happens in HEAD. Discussion: https://postgr.es/m/412ae8da-76bb-640f-039a-f3513499e53d@gmx.net Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/91bdf499b37b0bbef34e2bab5cc40dde52bda52c Modified Files -------------- src/bin/pg_rewind/t/RewindTest.pm | 2 +- src/test/perl/PostgresNode.pm | 13 ++++++------- src/test/perl/TestLib.pm | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. @ 2020-07-09 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-07-09 21:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Tighten up Windows CRLF conversion in our TAP test scripts. Back-patch commits 91bdf499b and ffb4cee43, so that all branches agree on when and how to do Windows CRLF conversion. This should close the referenced thread. Thanks to Andrew Dunstan for discussion/review. Discussion: https://postgr.es/m/412ae8da-76bb-640f-039a-f3513499e53d@gmx.net Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/17b87b3049fa7e3ddc68bf9daaffa3b01d7b8be2 Modified Files -------------- src/bin/pg_rewind/t/RewindTest.pm | 2 +- src/test/perl/PostgresNode.pm | 17 ++++++++++------- src/test/perl/TestLib.pm | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. @ 2020-07-09 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-07-09 21:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Tighten up Windows CRLF conversion in our TAP test scripts. Back-patch commits 91bdf499b and ffb4cee43, so that all branches agree on when and how to do Windows CRLF conversion. This should close the referenced thread. Thanks to Andrew Dunstan for discussion/review. Discussion: https://postgr.es/m/412ae8da-76bb-640f-039a-f3513499e53d@gmx.net Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a3cfb10764bb4fb20d8d57afc9f02c8eca3f570d Modified Files -------------- src/bin/pg_rewind/t/RewindTest.pm | 2 +- src/test/perl/PostgresNode.pm | 17 ++++++++++------- src/test/perl/TestLib.pm | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. @ 2020-07-09 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-07-09 21:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Tighten up Windows CRLF conversion in our TAP test scripts. Back-patch commits 91bdf499b and ffb4cee43, so that all branches agree on when and how to do Windows CRLF conversion. This should close the referenced thread. Thanks to Andrew Dunstan for discussion/review. Discussion: https://postgr.es/m/412ae8da-76bb-640f-039a-f3513499e53d@gmx.net Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/89162b7364bf7831cde458a9a298c060256dc59a Modified Files -------------- src/bin/pg_rewind/t/RewindTest.pm | 2 +- src/test/perl/PostgresNode.pm | 17 ++++++++++------- src/test/perl/TestLib.pm | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. @ 2020-07-09 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-07-09 21:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Tighten up Windows CRLF conversion in our TAP test scripts. Back-patch commits 91bdf499b and ffb4cee43, so that all branches agree on when and how to do Windows CRLF conversion. This should close the referenced thread. Thanks to Andrew Dunstan for discussion/review. Discussion: https://postgr.es/m/412ae8da-76bb-640f-039a-f3513499e53d@gmx.net Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4c17c5a8529c79d71c6e4284743dd64b79748e12 Modified Files -------------- src/bin/pg_rewind/t/RewindTest.pm | 2 +- src/test/perl/PostgresNode.pm | 17 ++++++++++------- src/test/perl/TestLib.pm | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. @ 2020-07-09 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-07-09 21:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Tighten up Windows CRLF conversion in our TAP test scripts. Back-patch commits 91bdf499b and ffb4cee43, so that all branches agree on when and how to do Windows CRLF conversion. This should close the referenced thread. Thanks to Andrew Dunstan for discussion/review. Discussion: https://postgr.es/m/412ae8da-76bb-640f-039a-f3513499e53d@gmx.net Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ce9d053423fd8ca5d194dbd3efb13e615c7c0787 Modified Files -------------- src/bin/pg_rewind/t/RewindTest.pm | 2 +- src/test/perl/PostgresNode.pm | 13 ++++++++----- src/test/perl/TestLib.pm | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. @ 2020-07-09 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-07-09 21:39 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Tighten up Windows CRLF conversion in our TAP test scripts. Back-patch commits 91bdf499b and ffb4cee43, so that all branches agree on when and how to do Windows CRLF conversion. This should close the referenced thread. Thanks to Andrew Dunstan for discussion/review. Discussion: https://postgr.es/m/412ae8da-76bb-640f-039a-f3513499e53d@gmx.net Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d0390509a1823d5cb29ae3ed7cbbedf8684d3d6c Modified Files -------------- src/bin/pg_rewind/t/RewindTest.pm | 6 +++--- src/test/perl/PostgresNode.pm | 13 ++++++++----- src/test/perl/TestLib.pm | 4 ++-- 3 files changed, 13 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2020-07-09 21:39 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-07-09 00:25 pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. Tom Lane <tgl@sss.pgh.pa.us> 2020-07-09 21:39 pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. Tom Lane <tgl@sss.pgh.pa.us> 2020-07-09 21:39 pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. Tom Lane <tgl@sss.pgh.pa.us> 2020-07-09 21:39 pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. Tom Lane <tgl@sss.pgh.pa.us> 2020-07-09 21:39 pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. Tom Lane <tgl@sss.pgh.pa.us> 2020-07-09 21:39 pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. Tom Lane <tgl@sss.pgh.pa.us> 2020-07-09 21:39 pgsql: Tighten up Windows CRLF conversion in our TAP test scripts. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox