mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
Merge pull request #3232 from eduar-hte/failed-unit-tests-automake-output
Unit tests results should not be displayed in 'automake output' mode
This commit is contained in:
commit
97c8766ef1
@ -21,6 +21,7 @@ simple_request_LDFLAGS = \
|
|||||||
-L$(top_builddir)/src/.libs/ \
|
-L$(top_builddir)/src/.libs/ \
|
||||||
$(GEOIP_LDFLAGS) \
|
$(GEOIP_LDFLAGS) \
|
||||||
-lmodsecurity \
|
-lmodsecurity \
|
||||||
|
-lpthread \
|
||||||
-lm \
|
-lm \
|
||||||
-lstdc++ \
|
-lstdc++ \
|
||||||
$(LMDB_LDFLAGS) \
|
$(LMDB_LDFLAGS) \
|
||||||
|
@ -21,7 +21,6 @@ read_LDFLAGS = \
|
|||||||
-L$(top_builddir)/src/.libs/ \
|
-L$(top_builddir)/src/.libs/ \
|
||||||
$(GEOIP_LDFLAGS) \
|
$(GEOIP_LDFLAGS) \
|
||||||
-lmodsecurity \
|
-lmodsecurity \
|
||||||
-lpthread \
|
|
||||||
-lm \
|
-lm \
|
||||||
-lstdc++ \
|
-lstdc++ \
|
||||||
$(LMDB_LDFLAGS) \
|
$(LMDB_LDFLAGS) \
|
||||||
|
@ -275,11 +275,11 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
if (!test.m_automake_output) {
|
if (!test.m_automake_output) {
|
||||||
std::cout << "Total >> " << total << std::endl;
|
std::cout << "Total >> " << total << std::endl;
|
||||||
}
|
|
||||||
|
|
||||||
for (const auto t : results) {
|
for (const auto t : results) {
|
||||||
std::cout << t->print() << std::endl;
|
std::cout << t->print() << std::endl;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const int skp = std::count_if(results.cbegin(), results.cend(), [](const auto &i)
|
const int skp = std::count_if(results.cbegin(), results.cend(), [](const auto &i)
|
||||||
{ return i->skipped; });
|
{ return i->skipped; });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user