Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit76d7f27

Browse files
committed
Bail out of dtmbench tap test if database init failed.
1 parent6a36538 commit76d7f27

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)

[8]ページ先頭

©2009-2025 Movatter.jp