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.)
This commit is contained in:
parent
6f6b99d133
commit
f25000c832
@ -132,7 +132,7 @@ my $nthreads = 2;
|
||||
{
|
||||
my ($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
|
||||
@ -354,7 +354,7 @@ SELECT LEAST(:i, :i, :i, :i, :i, :i, :i, :i, :i, :i, :i);
|
||||
0,
|
||||
[qr{gaussian param.* at least 2}],
|
||||
q{\set i random_gaussian(0, 10, 1.0)} ],
|
||||
[ 'set exponential param > 0',
|
||||
[ 'set exponential param greater 0',
|
||||
0,
|
||||
[qr{exponential parameter must be greater }],
|
||||
q{\set i random_exponential(0, 10, 0.0)} ],
|
||||
|
Loading…
x
Reference in New Issue
Block a user