pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix isolation test to be less timing-dependent
Date: Wed, 03 Jan 2018 15:09:21 +0000
Message-ID: <E1eWkfR-0007wz-2N@gemulon.postgresql.org> (raw)

Fix isolation test to be less timing-dependent

I did this by adding another locking process, which makes the other two
wait.  This way the output should be stable enough.

Per buildfarm and Andres Freund
Discussion: https://postgr.es/m/20180103034445.t3utrtrnrevfsghm@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2268e6afd59649d6bf6d114a19e9c492d59b43fc

Modified Files
--------------
src/test/isolation/expected/multiple-cic.out | 17 +++++++++++------
src/test/isolation/specs/multiple-cic.spec   | 12 ++++++++----
2 files changed, 19 insertions(+), 10 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1eWkfR-0007wz-2N@gemulon.postgresql.org>
Permalink:  ../E1eWkfR-0007wz-2N@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eWkfR-0007wz-2N@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Fix isolation test to be less timing-dependent
  In-Reply-To: <E1eWkfR-0007wz-2N@gemulon.postgresql.org>
  References: <E1eWkfR-0007wz-2N@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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