diff options
Diffstat (limited to 'src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl')
-rw-r--r-- | src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl b/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl index f20a6a29bd7..f8e39b58131 100644 --- a/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl +++ b/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl @@ -11,13 +11,15 @@ my $node = get_new_node('main'); $node->init; $node->start; -my $numrows = 10000; +my $numrows = 700; $ENV{PATH} = "$ENV{PATH}:" . getcwd(); my ($out, $err) = run_command([ 'libpq_pipeline', 'tests' ]); die "oops: $err" unless $err eq ''; my @tests = split(/\s+/, $out); +mkdir "$TestLib::tmp_check/traces"; + for my $testname (@tests) { my @extraargs = (); @@ -26,7 +28,7 @@ for my $testname (@tests) pipeline_abort transaction disallowed_in_pipeline)) > 0; # For a bunch of tests, generate a libpq trace file too. - my $traceout = "$TestLib::log_path/$testname.trace"; + my $traceout = "$TestLib::tmp_check/traces/$testname.trace"; if ($cmptrace) { push @extraargs, "-t", $traceout; @@ -52,7 +54,7 @@ for my $testname (@tests) $result = slurp_file_eval($traceout); next unless $result ne ""; - is($expected, $result, "$testname trace match"); + is($result, $expected, "$testname trace match"); } } |