Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 875743b

Browse files
kvapkelvich
authored andcommitted
Bail out of dtmbench tap test if database init failed.
1 parent d0cbe22 commit 875743b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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)