Skip to content

Commit 76d7f27

Browse files
committed
Bail out of dtmbench tap test if database init failed.
1 parent 6a36538 commit 76d7f27

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

contrib/mmts/t/002_dtmbench.pl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,17 @@ sub allocate_ports
103103
push(@argv, '-n', 10, '-a', 1000, '-w', 10, '-r', 1);
104104

105105
diag("running dtmbench -i");
106-
TestLib::run_log([@argv, '-i']);
106+
if (TestLib::run_log([@argv, '-i']))
107+
{
108+
BAIL_OUT("dtmbench -i failed");
109+
}
107110

108111
diag("running dtmbench");
109-
TestLib::run_log(\@argv, '>', \$out);
110-
if ($out =~ /Wrong sum/)
112+
if (TestLib::run_log(\@argv, '>', \$out))
113+
{
114+
fail("dtmbench failed");
115+
}
116+
elsif ($out =~ /Wrong sum/)
111117
{
112118
fail("inconsistency detected");
113119
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy