Skip to content

Commit 869aa40

Browse files
committed
Fix assorted portability issues in new pgbench TAP tests.
* Our own version of getopt_long doesn't support abbreviation of long options. * It doesn't do automatic rearrangement of non-option arguments to the end, either. * Test was way too optimistic about the platform independence of NaN and Infinity outputs. I rather imagine we might have to lose those tests altogether, but for the moment just allow case variation and fully spelled out Infinity. Per buildfarm.
1 parent ed8a7c6 commit 869aa40

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/bin/pgbench/t/001_pgbench_with_server.pl

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ sub pgbench
8989

9090
# Again, with all possible options
9191
pgbench(
92-
93-
# unlogged => faster test
94-
'--initialize --scale=1 --unlogged --fillfactor=98 --foreign-keys --quiet'
95-
. ' --tablespace=pg_default --index-tablespace=pg_default',
92+
'--initialize --scale=1 --unlogged-tables --fillfactor=98 --foreign-keys --quiet --tablespace=pg_default --index-tablespace=pg_default',
9693
0,
9794
[qr{^$}i],
9895
[ qr{creating tables},
@@ -220,9 +217,9 @@ sub pgbench
220217
qr{command=18.: double 18\b},
221218
qr{command=19.: double 19\b},
222219
qr{command=20.: double 20\b},
223-
qr{command=21.: double -?nan\b},
224-
qr{command=22.: double inf\b},
225-
qr{command=23.: double -inf\b},
220+
qr{command=21.: double -?nan}i,
221+
qr{command=22.: double inf}i,
222+
qr{command=23.: double -inf}i,
226223
qr{command=24.: int 9223372036854775807\b}, ],
227224
'pgbench expressions',
228225
{ '001_pgbench_expressions' => q{-- integer functions

src/bin/pgbench/t/002_pgbench_no_server.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sub pgbench
2525

2626
# name, options, stderr checks
2727
[ 'bad option',
28-
'-h home -p 5432 -U calvin -d stuff --bad-option',
28+
'-h home -p 5432 -U calvin -d --bad-option',
2929
[ qr{unrecognized option}, qr{--help.*more information} ] ],
3030
[ 'no file',
3131
'-f no-such-file',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy