Commit f25000c8 authored by Tom Lane's avatar Tom Lane

Fix more portability issues in new pgbench TAP tests.

Not completely sure, but I think bowerbird is spitting up on attempting
to include ">" in a temporary file name.  (Why in the world are we
writing this stuff into files at all?  A hash would be a better answer.)
parent 6f6b99d1
...@@ -132,7 +132,7 @@ my $nthreads = 2; ...@@ -132,7 +132,7 @@ my $nthreads = 2;
{ {
my ($stderr); my ($stderr);
run_log([ 'pgbench', '-j', '2', '--bad-option' ], '2>', \$stderr); run_log([ 'pgbench', '-j', '2', '--bad-option' ], '2>', \$stderr);
$nthreads = 1 if $stderr =~ 'threads are not supported on this platform'; $nthreads = 1 if $stderr =~ m/threads are not supported on this platform/;
} }
# run custom scripts # run custom scripts
...@@ -354,7 +354,7 @@ SELECT LEAST(:i, :i, :i, :i, :i, :i, :i, :i, :i, :i, :i); ...@@ -354,7 +354,7 @@ SELECT LEAST(:i, :i, :i, :i, :i, :i, :i, :i, :i, :i, :i);
0, 0,
[qr{gaussian param.* at least 2}], [qr{gaussian param.* at least 2}],
q{\set i random_gaussian(0, 10, 1.0)} ], q{\set i random_gaussian(0, 10, 1.0)} ],
[ 'set exponential param > 0', [ 'set exponential param greater 0',
0, 0,
[qr{exponential parameter must be greater }], [qr{exponential parameter must be greater }],
q{\set i random_exponential(0, 10, 0.0)} ], q{\set i random_exponential(0, 10, 0.0)} ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment