pgsql: Fix test case instability introduced in 085b6b667.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix test case instability introduced in 085b6b667.
Date: 2020-03-11 22:24:33
Message-ID: E1jC9mD-0002dA-5v@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix test case instability introduced in 085b6b667.

I forgot that the WAL directory might hold other files besides WAL
segments, notably including new segments still being filled.
That means a blind test for the first file's size being 16MB can
fail. Restrict based on file name length to make it more robust.

Per buildfarm.

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/064e029e60a516dea6566652d729419a51294ac2

Modified Files
--------------
src/test/regress/expected/misc_functions.out | 3 ++-
src/test/regress/sql/misc_functions.sql | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2020-03-12 05:19:13 pgsql: Fix nextXid tracking bug on standbys (9.5-11 only).
Previous Message Peter Geoghegan 2020-03-11 21:16:20 pgsql: Paper over bt_metap() oldest_xact bug in backbranches.