Skip to content

Commit 97c8766

Browse files
authored
Merge pull request #3232 from eduar-hte/failed-unit-tests-automake-output
Unit tests results should not be displayed in 'automake output' mode
2 parents 752ab76 + df081af commit 97c8766

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/reading_logs_via_rule_message/Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ simple_request_LDFLAGS = \
2121
-L$(top_builddir)/src/.libs/ \
2222
$(GEOIP_LDFLAGS) \
2323
-lmodsecurity \
24+
-lpthread \
2425
-lm \
2526
-lstdc++ \
2627
$(LMDB_LDFLAGS) \

examples/reading_logs_with_offset/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ read_LDFLAGS = \
2121
-L$(top_builddir)/src/.libs/ \
2222
$(GEOIP_LDFLAGS) \
2323
-lmodsecurity \
24-
-lpthread \
2524
-lm \
2625
-lstdc++ \
2726
$(LMDB_LDFLAGS) \

test/unit/unit.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,10 @@ int main(int argc, char **argv) {
275275

276276
if (!test.m_automake_output) {
277277
std::cout << "Total >> " << total << std::endl;
278-
}
279278

280-
for (const auto t : results) {
281-
std::cout << t->print() << std::endl;
279+
for (const auto t : results) {
280+
std::cout << t->print() << std::endl;
281+
}
282282
}
283283

284284
const int skp = std::count_if(results.cbegin(), results.cend(), [](const auto &i)

0 commit comments

Comments
 (0)