pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Don't try to test files named with a trailing dot on Windows
2+ messages / 2 participants
[nested] [flat]
* pgsql: Don't try to test files named with a trailing dot on Windows
@ 2018-10-21 13:03 Andrew Dunstan <andrew@dunslane.net>
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Dunstan @ 2018-10-21 13:03 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Don't try to test files named with a trailing dot on Windows
The pg_verify_checksums test tries to create files with corrupt data
named "123." and "123_." But on Windows a file name with a trailing dot
is the same as a file without the trailing dot. In the first case this
will create a file with a "valid" name, which causes the test to fail in
an unexpected way, and in the secongd case this will be redandant as the
test already creates a file named "123_".
Bug discovered by buildfarm animal bowerbird.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c468bd5c087051e2edc573118a42d73a8ae3c3a4
Modified Files
--------------
src/bin/pg_verify_checksums/t/002_actions.pl | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pgsql: Don't try to test files named with a trailing dot on Windows
@ 2018-10-21 13:51 Michael Paquier <michael@paquier.xyz>
parent: Andrew Dunstan <andrew@dunslane.net>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Paquier @ 2018-10-21 13:51 UTC (permalink / raw)
To: Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers@lists.postgresql.org
On Sun, Oct 21, 2018 at 01:03:35PM +0000, Andrew Dunstan wrote:
> Don't try to test files named with a trailing dot on Windows
>
> The pg_verify_checksums test tries to create files with corrupt data
> named "123." and "123_." But on Windows a file name with a trailing dot
> is the same as a file without the trailing dot. In the first case this
> will create a file with a "valid" name, which causes the test to fail in
> an unexpected way, and in the secongd case this will be redandant as the
> test already creates a file named "123_".
>
> Bug discovered by buildfarm animal bowerbird.
Thanks Andrew! That property of Windows is actually... Interesting.
Please feel free to ping me on the involved message if I don't see a
buildfarm failure, and I'll investigate.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-10-21 13:51 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-10-21 13:03 pgsql: Don't try to test files named with a trailing dot on Windows Andrew Dunstan <andrew@dunslane.net>
2018-10-21 13:51 ` Michael Paquier <michael@paquier.xyz>
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