Skip to content

Commit 270ba35

Browse files
committed
Some test revert
1 parent aa049f8 commit 270ba35

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

test/testsingleexecutor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ class TestSingleExecutorBase : public TestFixture {
242242
dinit(CheckOptions,
243243
$.showtime = SHOWTIME_MODES::SHOWTIME_TOP5_FILE));
244244
const std::string output_s = GET_REDIRECT_OUTPUT;
245-
// for each file: top5 results + overall
246-
ASSERT_EQUALS((5 + 1) * 2LL, cppcheck::count_all_of(output_s, '\n'));
245+
// for each file: top5 results + overall + empty line
246+
ASSERT_EQUALS((5 + 1 + 1) * 2LL, cppcheck::count_all_of(output_s, '\n'));
247247
}
248248

249249
void showtime_top5_summary() {
@@ -253,8 +253,8 @@ class TestSingleExecutorBase : public TestFixture {
253253
dinit(CheckOptions,
254254
$.showtime = SHOWTIME_MODES::SHOWTIME_TOP5_SUMMARY));
255255
const std::string output_s = GET_REDIRECT_OUTPUT;
256-
// once: top5 results + overall
257-
ASSERT_EQUALS(5 + 1, cppcheck::count_all_of(output_s, '\n'));
256+
// once: top5 results + overall + empty line
257+
ASSERT_EQUALS(5 + 1 + 1, cppcheck::count_all_of(output_s, '\n'));
258258
// should only report the top5 once
259259
ASSERT(output_s.find("1 result(s)") == std::string::npos);
260260
ASSERT(output_s.find("2 result(s)") != std::string::npos);

test/testthreadexecutor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ class TestThreadExecutorBase : public TestFixture {
234234
dinit(CheckOptions,
235235
$.showtime = SHOWTIME_MODES::SHOWTIME_TOP5_FILE));
236236
const std::string output_s = GET_REDIRECT_OUTPUT;
237-
// for each file: top5 results + overall
238-
ASSERT_EQUALS((5 + 1) * 2LL, cppcheck::count_all_of(output_s, '\n'));
237+
// for each file: top5 results + overall + empty line
238+
ASSERT_EQUALS((5 + 1 + 1) * 2LL, cppcheck::count_all_of(output_s, '\n'));
239239
}
240240

241241
void showtime_top5_summary() {
@@ -245,8 +245,8 @@ class TestThreadExecutorBase : public TestFixture {
245245
dinit(CheckOptions,
246246
$.showtime = SHOWTIME_MODES::SHOWTIME_TOP5_SUMMARY));
247247
const std::string output_s = GET_REDIRECT_OUTPUT;
248-
// once: top5 results + overall
249-
ASSERT_EQUALS(5 + 1, cppcheck::count_all_of(output_s, '\n'));
248+
// once: top5 results + overall + empty line
249+
ASSERT_EQUALS(5 + 1 + 1, cppcheck::count_all_of(output_s, '\n'));
250250
// should only report the top5 once
251251
ASSERT(output_s.find("1 result(s)") == std::string::npos);
252252
ASSERT(output_s.find("2 result(s)") != std::string::npos);

0 commit comments

Comments
 (0)