Skip to content

Commit 2c059c8

Browse files
committed
Add $Test::Builder::Level to pgbench test functions
same as c4309f4
1 parent 6837078 commit 2c059c8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# invoke pgbench
1414
sub pgbench
1515
{
16+
local $Test::Builder::Level = $Test::Builder::Level + 1;
17+
1618
my ($opts, $stat, $out, $err, $name, $files) = @_;
1719
my @cmd = ('pgbench', split /\s+/, $opts);
1820
my @filenames = ();
@@ -798,6 +800,8 @@ sub pgbench
798800
# check log contents and cleanup
799801
sub check_pgbench_logs
800802
{
803+
local $Test::Builder::Level = $Test::Builder::Level + 1;
804+
801805
my ($prefix, $nb, $min, $max, $re) = @_;
802806

803807
my @logs = glob "$prefix.*";

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
# invoke pgbench
2121
sub pgbench
2222
{
23+
local $Test::Builder::Level = $Test::Builder::Level + 1;
24+
2325
my ($opts, $stat, $out, $err, $name) = @_;
2426
print STDERR "opts=$opts, stat=$stat, out=$out, err=$err, name=$name";
2527
command_checks_all([ 'pgbench', split(/\s+/, $opts) ],
@@ -30,6 +32,8 @@ sub pgbench
3032
# invoke pgbench with scripts
3133
sub pgbench_scripts
3234
{
35+
local $Test::Builder::Level = $Test::Builder::Level + 1;
36+
3337
my ($opts, $stat, $out, $err, $name, $files) = @_;
3438
my @cmd = ('pgbench', split /\s+/, $opts);
3539
my @filenames = ();

0 commit comments

Comments
 (0)