Open semihc opened 1 year ago
I maintain the easyloggingpp
package in Fedora Linux.
I previously filed https://github.com/amrayn/easyloggingpp/issues/816 about this.
I don’t know what the root cause is, but I am working around the failures by calling easyloggingpp-unit-tests
with the argument --gtest_filter=-CommandLineArgsTest.LoggingFlagsArg
.
Hi,
I am trying to build easyloggingpp on Ubuntu 22.4 (WSL2) with Gcc 12.1.0. The CMake configuration fails with following message:
I made following changes to the CMakeFile to overcome the above issue:
However, This time I encounter unit test failures:
1: [----------] 11 tests from WriteAllTest (3092 ms total) 1: 1: [----------] Global test environment tear-down 1: [==========] 79 tests from 26 test suites ran. (11934 ms total) 1: [ PASSED ] 77 tests. 1: [ FAILED ] 2 tests, listed below: 1: [ FAILED ] CommandLineArgsTest.LoggingFlagsArg 1: [ FAILED ] HelpersTest.ConvertTemplateToStdString 1: 1: 2 FAILED TESTS 1/1 Test #1: easyloggingppUnitTests ...........***Failed 12.09 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 12.09 sec
The following tests FAILED: 1 - easyloggingppUnitTests (Failed) Errors while running CTest Output from these tests are in: /opt/TC/ext/easyloggingpp/bld_gcc/Testing/Temporary/LastTest.log Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely. semihc@ALTAY:/opt/TC/ext/easyloggingpp$
Do you have any advice to fix unit tests?
Regards, Semih