pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org, PostgreSQL Developers <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Fix assorted portability issues in new pgbench TAP tests.
Date: Fri, 8 Sep 2017 19:34:04 +0200 (CEST)
Message-ID: <alpine.DEB.2.20.1709081931050.3568@lancre> (raw)
In-Reply-To: <E1dqLCQ-0004TY-6Z@gemulon.postgresql.org>
References: <E1dqLCQ-0004TY-6Z@gemulon.postgresql.org>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>


Hello,

Please find attached "blind" additional fixes for Windows & AIX.

  - more nan/inf variants
  - different message on non existing user
  - illegal vs unrecognized options

I suspect that $windows_os is not true on "bowerbird", in order to fix it 
the value of "$Config{osname}" is needed...

-- 
Fabien.

-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Attachments:

pgbench-tap-fix-1.patch (text/x-diff, 1.7K) download diff --git a/src/bin/pgbench/t/001_pgbench_with_server.pl b/src/bin/pgbench/t/001_pgbench_with_server.pl index 66df4bc..54a6039 100644 --- a/src/bin/pgbench/t/001_pgbench_with_server.pl +++ b/src/bin/pgbench/t/001_pgbench_with_server.pl @@ -73,7 +73,11 @@ pgbench( 1, [qr{^$}], [ qr{connection to database "template0" failed}, - qr{FATAL: role "no-such-user" does not exist} ], + # FATAL: role "no-such-user" does not exist + # FATAL: SSPI authentication failed for user "no-such-user" + qr{FATAL:.* (role|user) "no-such-user"}, + qr{FATAL:.* (does not exist|authentication failed)} + ], 'no such user'); pgbench( @@ -217,9 +221,9 @@ pgbench( qr{command=18.: double 18\b}, qr{command=19.: double 19\b}, qr{command=20.: double 20\b}, - qr{command=21.: double -?nan}i, - qr{command=22.: double inf}i, - qr{command=23.: double -inf}i, + qr{command=21.: double (-?nan|-1\.#IND)}i, + qr{command=22.: double (inf|1\.#INF)}i, + qr{command=23.: double (-inf|-1\.#INF)}i, qr{command=24.: int 9223372036854775807\b}, ], 'pgbench expressions', { '001_pgbench_expressions' => q{-- integer functions diff --git a/src/bin/pgbench/t/002_pgbench_no_server.pl b/src/bin/pgbench/t/002_pgbench_no_server.pl index 631aa73..d6b3d4f 100644 --- a/src/bin/pgbench/t/002_pgbench_no_server.pl +++ b/src/bin/pgbench/t/002_pgbench_no_server.pl @@ -26,7 +26,7 @@ my @options = ( # name, options, stderr checks [ 'bad option', '-h home -p 5432 -U calvin -d --bad-option', - [ qr{unrecognized option}, qr{--help.*more information} ] ], + [ qr{(unrecognized|illegal) option}, qr{--help.*more information} ] ], [ 'no file', '-f no-such-file', [qr{could not open file "no-such-file":}] ],

view thread (5+ messages)  latest in thread

Message-ID: <alpine.DEB.2.20.1709081931050.3568@lancre>
Permalink:  ../alpine.DEB.2.20.1709081931050.3568@lancre/
Also on:    postgresql.org/message-id/alpine.DEB.2.20.1709081931050.3568@lancre

 ·  · 

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: coelho@cri.ensmp.fr, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Fix assorted portability issues in new pgbench TAP tests.
  In-Reply-To: <alpine.DEB.2.20.1709081931050.3568@lancre>
  References: <E1dqLCQ-0004TY-6Z@gemulon.postgresql.org> <alpine.DEB.2.20.1709081931050.3568@lancre>

* 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