Skip to content

Commit 7517433

Browse files
committed
test
1 parent 5a76a28 commit 7517433

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testthreadexecutor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class TestThreadExecutorBase : public TestFixture {
250250
$.showtime = ShowTime::TOP5_FILE));
251251
const std::string output_s = GET_REDIRECT_OUTPUT;
252252
// for each file: top5 results + check time
253-
ASSERT_EQUALS((5 + 1) * 2LL, cppcheck::count_all_of(output_s, '\n'));
253+
ASSERT_EQUALS_MSG((5 + 1) * 2LL, cppcheck::count_all_of(output_s, '\n'), output_s);
254254
}
255255

256256
void showtime_file() {
@@ -270,8 +270,8 @@ class TestThreadExecutorBase : public TestFixture {
270270
dinit(CheckOptions,
271271
$.showtime = ShowTime::FILE_TOTAL));
272272
const std::string output_s = GET_REDIRECT_OUTPUT;
273-
ASSERT(output_s.find("Check time: " + fprefix() + "_1.c: ") != std::string::npos);
274-
ASSERT(output_s.find("Check time: " + fprefix() + "_2.c: ") != std::string::npos);
273+
ASSERT_MSG(output_s.find("Check time: " + fprefix() + "_1.c: ") != std::string::npos, output_s);
274+
ASSERT_MSG(output_s.find("Check time: " + fprefix() + "_2.c: ") != std::string::npos, output_s);
275275
}
276276

277277
void suppress_error_library() {

0 commit comments

Comments
 (0)