easyloggingpp
easyloggingpp copied to clipboard
Unit test failures and core dump
Ubuntu 21.10 gcc/g++ 11.2.0 also gcc/g++ 10.3 (hopefully I'm doing something wrong; but I can't guess what
easyloggingpp/test/command-line-args-test.h:50: Failure Value of: Loggers::hasFlag(LoggingFlag::NewLineForContainer) Actual: true Expected: false easyloggingpp/test/command-line-args-test.h:50: Failure Value of: Loggers::hasFlag(LoggingFlag::NewLineForContainer) Actual: true Expected: false easyloggingpp/test/helpers-test.h:15: Failure Expected equality of these values: "[1, 2, 3, 4]" strVecInt Which is: "[1\n 2\n 3\n 4]" With diff: @@ -1,1 +1,4 @@ -[1, 2, 3, 4] +[1
- 2
- 3
- 4]
[ FAILED ] HelpersTest.ConvertTemplateToStdString (0 ms)
easyloggingpp/test/syslog-test.h:23: Failure Value of: Str::endsWith(actual, expectedEnd) Actual: false Expected: true [ FAILED ] SysLogTest.WriteLog (1001 ms) easyloggingpp/test/syslog-test.h:61: Failure Value of: Str::endsWith(tail(1, kSysLogFile), expected) Actual: false Expected: true easyloggingpp/test/syslog-test.h:61: Failure Value of: Str::endsWith(tail(1, kSysLogFile), expected) Actual: false Expected: true easyloggingpp/test/syslog-test.h:71: Failure Value of: Str::endsWith(tail(1, kSysLogFile), expected) Actual: false Expected: true easyloggingpp/test/syslog-test.h:76: Failure Value of: Str::endsWith(tail(1, kSysLogFile), expected) Actual: false Expected: true [ FAILED ] SysLogTest.DebugVersionLogs (8002 ms) easyloggingpp/test/typed-configurations-test.h:88: Failure Expected equality of these values: prev Which is: 0x5578d46fca30 tConf.fileStream(LevelHelper::castFromInt(lIndex)) Which is: NULL easyloggingpp/test/typed-configurations-test.h:88: Failure Expected equality of these values: prev Which is: 0x5578d46fca30 tConf.fileStream(LevelHelper::castFromInt(lIndex)) Which is: NULL easyloggingpp/test/typed-configurations-test.h:88: Failure Expected equality of these values: prev Which is: 0x5578d46fca30 tConf.fileStream(LevelHelper::castFromInt(lIndex)) Which is: NULL [ FAILED ] TypedConfigurationsTest.SharedFileStreams (8 ms) [ RUN ] TypedConfigurationsTest.NonExistentFileCreation easyloggingpp/test/typed-configurations-test.h:103: Failure Value of: tConf.toFile(Level::Global) Actual: false Expected: true easyloggingpp/test/typed-configurations-test.h:103: Failure Value of: tConf.toFile(Level::Global) Actual: false Expected: true
[ RUN ] TypedConfigurationsTest.WriteToFiles
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7e53854 in std::__basic_file