]> granicus.if.org Git - postgresql/commitdiff
Fix more portability issues in new pgbench TAP tests.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Sep 2017 21:37:43 +0000 (17:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Sep 2017 21:37:59 +0000 (17:37 -0400)
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.)

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

index b80640a8cceb9cf60b6e9e61f9e2c5e1b59a1e0e..3609b9bedeb1803d983e1f1afe6f19f4d2aa5c4c 100644 (file)
@@ -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)} ],