easyloggingpp icon indicating copy to clipboard operation
easyloggingpp copied to clipboard

sample/STL/syslog.cpp logs: Logger [syslog] is not registered yet!

Open robertthorn opened this issue 7 years ago • 7 comments

The syslog.cpp sample program is not working for me. I only get the message "Logger [syslog] is not registered yet!". That is the logger I would like to use. I have executed the other samples and they seem to work. But I have not checked all of them carefully. I am looking for the problem and would appreciate any advice. I am running Ubuntu 16.04 on an ARM processor.

robertthorn avatar Mar 20 '17 20:03 robertthorn

Here is what I get when I run the unit tests. [==========] 79 tests from 26 test cases ran. (38524 ms total) [ PASSED ] 75 tests. [ FAILED ] 4 tests, listed below: [ FAILED ] CommandLineArgsTest.LoggingFlagsArg [ FAILED ] HelpersTest.ConvertTemplateToStdString [ FAILED ] SysLogTest.WriteLog [ FAILED ] SysLogTest.DebugVersionLogs

4 FAILED TESTS

robertthorn avatar Mar 20 '17 20:03 robertthorn

Oh i see, can you remove #define ELPP_SYSLOG from syslog.cpp and recompile it but use -D flag to define ELPP_SYSLOG because now we have source file as well.

If this works for can you please send me full output of unit tests to see whats happening

abumq avatar Mar 20 '17 23:03 abumq

Here is what the problem seems to be. The sample program and probably also the unit tests require that easylogging++.cc be compiled with the flag ELPP_SYSLOG set. It is not enough to only set ELPP_SYSLOG in the sample/STL/syslog.cpp. Another problem is that in compile.sh the -Werror flag is specified. That means any unused variable will be treated as an error. Of course there will be unused variables so that will not work. It is an annoyance to have lots of unused variable warnings so unless they are individually disabled, it is better to just specify -Wno-unused-variable to disable all of them.

robertthorn avatar Mar 20 '17 23:03 robertthorn

I guess we both figured it out.

robertthorn avatar Mar 20 '17 23:03 robertthorn

The sample program works now but there are still the same 4 unit test failures.

robertthorn avatar Mar 21 '17 13:03 robertthorn

ubuntu@tegra2:~/workspace/easyloggingpp/test$ ./build_and_run.sh Building... /usr/bin/ld: warning: cannot find entry symbol rrors; defaulting to 0000000000407ae0 Running... Logs for test are written in [/tmp/logs/el.gtest.log] [==========] Running 79 tests from 26 test cases. [----------] Global test environment set-up. [----------] 2 tests from CommandLineArgsTest [ RUN ] CommandLineArgsTest.SetArgs [ OK ] CommandLineArgsTest.SetArgs (0 ms) [ RUN ] CommandLineArgsTest.LoggingFlagsArg ../command-line-args-test.h:50: Failure Value of: Loggers::hasFlag(LoggingFlag::NewLineForContainer) Actual: true Expected: false ../command-line-args-test.h:51: Failure Value of: Loggers::hasFlag(LoggingFlag::LogDetailedCrashReason) Actual: true Expected: false [ FAILED ] CommandLineArgsTest.LoggingFlagsArg (1 ms) [----------] 2 tests from CommandLineArgsTest (1 ms total)

[----------] 6 tests from ConfigurationsTest [ RUN ] ConfigurationsTest.Set [ OK ] ConfigurationsTest.Set (0 ms) [ RUN ] ConfigurationsTest.HasConfiguration [ OK ] ConfigurationsTest.HasConfiguration (0 ms) [ RUN ] ConfigurationsTest.SetForAllLevels [ OK ] ConfigurationsTest.SetForAllLevels (0 ms) [ RUN ] ConfigurationsTest.ParsingFromFile [ OK ] ConfigurationsTest.ParsingFromFile (0 ms) [ RUN ] ConfigurationsTest.ParsingFromText [ OK ] ConfigurationsTest.ParsingFromText (0 ms) [ RUN ] ConfigurationsTest.ParsingFromTextWithEscape [ OK ] ConfigurationsTest.ParsingFromTextWithEscape (0 ms) [----------] 6 tests from ConfigurationsTest (2 ms total)

[----------] 3 tests from CustomFormatSpecifierTest [ RUN ] CustomFormatSpecifierTest.TestInstall [ OK ] CustomFormatSpecifierTest.TestInstall (0 ms) [ RUN ] CustomFormatSpecifierTest.TestResolution [ OK ] CustomFormatSpecifierTest.TestResolution (2 ms) [ RUN ] CustomFormatSpecifierTest.TestUnInstall [ OK ] CustomFormatSpecifierTest.TestUnInstall (0 ms) [----------] 3 tests from CustomFormatSpecifierTest (3 ms total)

[----------] 2 tests from LevelTest [ RUN ] LevelTest.ConvertFromString [ OK ] LevelTest.ConvertFromString (0 ms) [ RUN ] LevelTest.ConvertToString [ OK ] LevelTest.ConvertToString (0 ms) [----------] 2 tests from LevelTest (1 ms total)

[----------] 2 tests from ConfigurationTypeTest [ RUN ] ConfigurationTypeTest.ConvertFromString [ OK ] ConfigurationTypeTest.ConvertFromString (1 ms) [ RUN ] ConfigurationTypeTest.ConvertToString [ OK ] ConfigurationTypeTest.ConvertToString (0 ms) [----------] 2 tests from ConfigurationTypeTest (2 ms total)

[----------] 2 tests from DateUtilsTest [ RUN ] DateUtilsTest.TimeFormatTest [ OK ] DateUtilsTest.TimeFormatTest (0 ms) [ RUN ] DateUtilsTest.PerformanceTrackerTest [ OK ] DateUtilsTest.PerformanceTrackerTest (6612 ms) [----------] 2 tests from DateUtilsTest (6612 ms total)

[----------] 6 tests from FileUtilsTest [ RUN ] FileUtilsTest.NewFileStream [ OK ] FileUtilsTest.NewFileStream (0 ms) [ RUN ] FileUtilsTest.GetSizeOfFile [ OK ] FileUtilsTest.GetSizeOfFile (0 ms) [ RUN ] FileUtilsTest.PathExists [ OK ] FileUtilsTest.PathExists (3 ms) [ RUN ] FileUtilsTest.ExtractPathFromFilename [ OK ] FileUtilsTest.ExtractPathFromFilename (0 ms) [ RUN ] FileUtilsTest.CreatePath [ OK ] FileUtilsTest.CreatePath (3 ms) [ RUN ] FileUtilsTest.BuildStrippedFilename [ OK ] FileUtilsTest.BuildStrippedFilename (0 ms) [----------] 6 tests from FileUtilsTest (6 ms total)

[----------] 2 tests from FormatSpecifierTest [ RUN ] FormatSpecifierTest.TestFBaseSpecifier [ OK ] FormatSpecifierTest.TestFBaseSpecifier (2 ms) [ RUN ] FormatSpecifierTest.TestLevShortSpecifier [ OK ] FormatSpecifierTest.TestLevShortSpecifier (3 ms) [----------] 2 tests from FormatSpecifierTest (5 ms total)

[----------] 1 test from GlobalConfigurationTest [ RUN ] GlobalConfigurationTest.Parse [ OK ] GlobalConfigurationTest.Parse (1 ms) [----------] 1 test from GlobalConfigurationTest (1 ms total)

[----------] 1 test from HelpersTest [ RUN ] HelpersTest.ConvertTemplateToStdString ../helpers-test.h:15: Failure Expected: "[1, 2, 3, 4]" To be equal to: 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) [----------] 1 test from HelpersTest (0 ms total)

[----------] 3 tests from RegisteredHitCountersTest [ RUN ] RegisteredHitCountersTest.ValidationEveryN [ OK ] RegisteredHitCountersTest.ValidationEveryN (0 ms) [ RUN ] RegisteredHitCountersTest.ValidationAfterN [ OK ] RegisteredHitCountersTest.ValidationAfterN (0 ms) [ RUN ] RegisteredHitCountersTest.ValidationNTimes [ OK ] RegisteredHitCountersTest.ValidationNTimes (0 ms) [----------] 3 tests from RegisteredHitCountersTest (1 ms total)

[----------] 3 tests from LogFormatResolutionTest [ RUN ] LogFormatResolutionTest.NormalFormat [ OK ] LogFormatResolutionTest.NormalFormat (0 ms) [ RUN ] LogFormatResolutionTest.DefaultFormat [ OK ] LogFormatResolutionTest.DefaultFormat (0 ms) [ RUN ] LogFormatResolutionTest.EscapedFormat [ OK ] LogFormatResolutionTest.EscapedFormat (0 ms) [----------] 3 tests from LogFormatResolutionTest (0 ms total)

[----------] 2 tests from LoggableTest [ RUN ] LoggableTest.TestValidLog [ OK ] LoggableTest.TestValidLog (0 ms) [ RUN ] LoggableTest.MakeLoggable [ OK ] LoggableTest.MakeLoggable (0 ms) [----------] 2 tests from LoggableTest (0 ms total)

[----------] 3 tests from LoggerTest [ RUN ] LoggerTest.RegisterTenThousandLoggers Tue Mar 21, 08:58 Performance checkpoint [Registered [1000] loggers] for block [RegisterTenThousandLoggers] : [626 ms] Tue Mar 21, 08:58 Performance checkpoint [Registered [2000] loggers] for block [RegisterTenThousandLoggers] : [1272 ms ([646 ms] from checkpoint 'Registered [1000] loggers')] Tue Mar 21, 08:58 Performance checkpoint [Registered [3000] loggers] for block [RegisterTenThousandLoggers] : [1 seconds ([642 ms] from checkpoint 'Registered [2000] loggers')] Tue Mar 21, 08:58 Performance checkpoint [Registered [4000] loggers] for block [RegisterTenThousandLoggers] : [2 seconds ([639 ms] from checkpoint 'Registered [3000] loggers')] Tue Mar 21, 08:58 Performance checkpoint [Registered [5000] loggers] for block [RegisterTenThousandLoggers] : [3 seconds ([639 ms] from checkpoint 'Registered [4000] loggers')] Tue Mar 21, 08:58 Performance checkpoint [Registered [6000] loggers] for block [RegisterTenThousandLoggers] : [3 seconds ([643 ms] from checkpoint 'Registered [5000] loggers')] Tue Mar 21, 08:58 Performance checkpoint [Registered [7000] loggers] for block [RegisterTenThousandLoggers] : [4 seconds ([635 ms] from checkpoint 'Registered [6000] loggers')] Tue Mar 21, 08:58 Performance checkpoint [Registered [8000] loggers] for block [RegisterTenThousandLoggers] : [5 seconds ([633 ms] from checkpoint 'Registered [7000] loggers')] Tue Mar 21, 08:58 Performance checkpoint [Registered [9000] loggers] for block [RegisterTenThousandLoggers] : [5 seconds ([635 ms] from checkpoint 'Registered [8000] loggers')] Tue Mar 21, 08:58 Performance checkpoint [Registered [10000] loggers] for block [RegisterTenThousandLoggers] : [6 seconds ([634 ms] from checkpoint 'Registered [9000] loggers')] Tue Mar 21, 08:58 Performance checkpoint [10,000 loggers registered] for block [RegisterTenThousandLoggers] : [6 seconds ([0 ms] from checkpoint 'Registered [10000] loggers')] Tue Mar 21, 08:58 Performance checkpoint [Log written using logger8478] for block [RegisterTenThousandLoggers] : [6 seconds ([0 ms] from checkpoint '10,000 loggers registered')] [ OK ] LoggerTest.RegisterTenThousandLoggers (9309 ms) [ RUN ] LoggerTest.CheckTenThousandLoggers [ OK ] LoggerTest.CheckTenThousandLoggers (199 ms) [ RUN ] LoggerTest.ValidId [ OK ] LoggerTest.ValidId (0 ms) [----------] 3 tests from LoggerTest (9508 ms total)

[----------] 1 test from MacrosTest [ RUN ] MacrosTest.VaLength [ OK ] MacrosTest.VaLength (0 ms) [----------] 1 test from MacrosTest (0 ms total)

[----------] 2 tests from OSUtilsTest [ RUN ] OSUtilsTest.GetBashOutput [ OK ] OSUtilsTest.GetBashOutput (48 ms) [ RUN ] OSUtilsTest.GetEnvironmentVariable [ OK ] OSUtilsTest.GetEnvironmentVariable (1 ms) [----------] 2 tests from OSUtilsTest (57 ms total)

[----------] 1 test from PLogTest [ RUN ] PLogTest.WriteLog [ OK ] PLogTest.WriteLog (0 ms) [----------] 1 test from PLogTest (0 ms total)

[----------] 2 tests from LogDispatchCallbackTest [ RUN ] LogDispatchCallbackTest.Installation [ OK ] LogDispatchCallbackTest.Installation (0 ms) [ RUN ] LogDispatchCallbackTest.Uninstallation [ OK ] LogDispatchCallbackTest.Uninstallation (0 ms) [----------] 2 tests from LogDispatchCallbackTest (1 ms total)

[----------] 1 test from RegistryTest [ RUN ] RegistryTest.RegisterAndUnregister [ OK ] RegistryTest.RegisterAndUnregister (0 ms) [----------] 1 test from RegistryTest (0 ms total)

[----------] 1 test from StrictFileSizeCheckTest [ RUN ] StrictFileSizeCheckTest.HandlerCalled [ OK ] StrictFileSizeCheckTest.HandlerCalled (10 ms) [----------] 1 test from StrictFileSizeCheckTest (10 ms total)

[----------] 11 tests from StringUtilsTest [ RUN ] StringUtilsTest.WildCardMatch [ OK ] StringUtilsTest.WildCardMatch (0 ms) [ RUN ] StringUtilsTest.Trim [ OK ] StringUtilsTest.Trim (0 ms) [ RUN ] StringUtilsTest.StartsAndEndsWith [ OK ] StringUtilsTest.StartsAndEndsWith (0 ms) [ RUN ] StringUtilsTest.ReplaceAll [ OK ] StringUtilsTest.ReplaceAll (0 ms) [ RUN ] StringUtilsTest.ToUpper [ OK ] StringUtilsTest.ToUpper (0 ms) [ RUN ] StringUtilsTest.CStringEq [ OK ] StringUtilsTest.CStringEq (0 ms) [ RUN ] StringUtilsTest.CStringCaseEq [ OK ] StringUtilsTest.CStringCaseEq (0 ms) [ RUN ] StringUtilsTest.Contains [ OK ] StringUtilsTest.Contains (0 ms) [ RUN ] StringUtilsTest.ReplaceFirstWithEscape [ OK ] StringUtilsTest.ReplaceFirstWithEscape (0 ms) [ RUN ] StringUtilsTest.AddToBuff [ OK ] StringUtilsTest.AddToBuff (0 ms) [ RUN ] StringUtilsTest.ConvertAndAddToBuff [ OK ] StringUtilsTest.ConvertAndAddToBuff (0 ms) [----------] 11 tests from StringUtilsTest (1 ms total)

[----------] 2 tests from SysLogTest [ RUN ] SysLogTest.WriteLog ../syslog-test.h:23: Failure Value of: Str::endsWith(actual, expectedEnd) Actual: false Expected: true [ FAILED ] SysLogTest.WriteLog (1001 ms) [ RUN ] SysLogTest.DebugVersionLogs ../syslog-test.h:61: Failure Value of: Str::endsWith(tail(1, kSysLogFile), expected) Actual: false Expected: true ../syslog-test.h:66: Failure Value of: Str::endsWith(tail(1, kSysLogFile), expected) Actual: false Expected: true ../syslog-test.h:71: Failure Value of: Str::endsWith(tail(1, kSysLogFile), expected) Actual: false Expected: true ../syslog-test.h:76: Failure Value of: Str::endsWith(tail(1, kSysLogFile), expected) Actual: false Expected: true [ FAILED ] SysLogTest.DebugVersionLogs (8009 ms) [----------] 2 tests from SysLogTest (9010 ms total)

[----------] 4 tests from TypedConfigurationsTest [ RUN ] TypedConfigurationsTest.Initialization [ OK ] TypedConfigurationsTest.Initialization (1 ms) [ RUN ] TypedConfigurationsTest.SharedFileStreams [ OK ] TypedConfigurationsTest.SharedFileStreams (1 ms) [ RUN ] TypedConfigurationsTest.NonExistentFileCreation [ OK ] TypedConfigurationsTest.NonExistentFileCreation (1 ms) [ RUN ] TypedConfigurationsTest.WriteToFiles [ OK ] TypedConfigurationsTest.WriteToFiles (1 ms) [----------] 4 tests from TypedConfigurationsTest (4 ms total)

[----------] 1 test from UtilitiesTest [ RUN ] UtilitiesTest.SafeDelete [ OK ] UtilitiesTest.SafeDelete (0 ms) [----------] 1 test from UtilitiesTest (0 ms total)

[----------] 4 tests from VerboseAppArgumentsTest [ RUN ] VerboseAppArgumentsTest.AppArgsLevel [ OK ] VerboseAppArgumentsTest.AppArgsLevel (0 ms) [ RUN ] VerboseAppArgumentsTest.AppArgsVModules [ OK ] VerboseAppArgumentsTest.AppArgsVModules (0 ms) [ RUN ] VerboseAppArgumentsTest.AppArgsVModulesExtension [ OK ] VerboseAppArgumentsTest.AppArgsVModulesExtension (0 ms) [ RUN ] VerboseAppArgumentsTest.VModulesClear [ OK ] VerboseAppArgumentsTest.VModulesClear (0 ms) [----------] 4 tests from VerboseAppArgumentsTest (0 ms total)

[----------] 11 tests from WriteAllTest [ RUN ] WriteAllTest.Entry [ OK ] WriteAllTest.Entry (3654 ms) [ RUN ] WriteAllTest.DEBUG [ OK ] WriteAllTest.DEBUG (1 ms) [ RUN ] WriteAllTest.INFO [ OK ] WriteAllTest.INFO (1 ms) [ RUN ] WriteAllTest.ERROR [ OK ] WriteAllTest.ERROR (1 ms) [ RUN ] WriteAllTest.WARNING [ OK ] WriteAllTest.WARNING (0 ms) [ RUN ] WriteAllTest.FATAL [ OK ] WriteAllTest.FATAL (1 ms) [ RUN ] WriteAllTest.TRACE [ OK ] WriteAllTest.TRACE (0 ms) [ RUN ] WriteAllTest.VERBOSE [ OK ] WriteAllTest.VERBOSE (9401 ms) [ RUN ] WriteAllTest.EVERY_N [ OK ] WriteAllTest.EVERY_N (12 ms) [ RUN ] WriteAllTest.AFTER_N [ OK ] WriteAllTest.AFTER_N (1 ms) [ RUN ] WriteAllTest.N_TIMES [ OK ] WriteAllTest.N_TIMES (0 ms) [----------] 11 tests from WriteAllTest (13077 ms total)

[----------] Global test environment tear-down [==========] 79 tests from 26 test cases ran. (38308 ms total) [ PASSED ] 75 tests. [ FAILED ] 4 tests, listed below: [ FAILED ] CommandLineArgsTest.LoggingFlagsArg [ FAILED ] HelpersTest.ConvertTemplateToStdString [ FAILED ] SysLogTest.WriteLog [ FAILED ] SysLogTest.DebugVersionLogs

4 FAILED TESTS Completed! ubuntu@tegra2:~/workspace/easyloggingpp/test$

robertthorn avatar Mar 21 '17 14:03 robertthorn

Hi,

I have the same issue when building easyloggingpp (v9.96.7) with tests:

1: Test command: /home/chri/development/swarm/conan-wrapper-easyloggingpp/target/build/bin/easyloggingpp-unit-tests "-v" 1: Environment variables: 1: GTEST_OUTPUT=xml:/home/chri/development/swarm/conan-wrapper-easyloggingpp/target/build/bin/GTest.xml 1: Test timeout computed to be: 9.99988e+06 1: Logs for test are written in [/tmp/logs/el.gtest.log] 1: [==========] Running 79 tests from 26 test cases. 1: [----------] Global test environment set-up. 1: [----------] 2 tests from CommandLineArgsTest 1: [ RUN ] CommandLineArgsTest.SetArgs 1: [ OK ] CommandLineArgsTest.SetArgs (0 ms) 1: [ RUN ] CommandLineArgsTest.LoggingFlagsArg 1: /home/chri/development/swarm/conan-wrapper-easyloggingpp/src/_src/test/command-line-args-test.h:50: Failure 1: Value of: Loggers::hasFlag(LoggingFlag::NewLineForContainer) 1: Actual: true 1: Expected: false 1: /home/chri/development/swarm/conan-wrapper-easyloggingpp/src/_src/test/command-line-args-test.h:51: Failure 1: Value of: Loggers::hasFlag(LoggingFlag::LogDetailedCrashReason) 1: Actual: true 1: Expected: false 1: [ FAILED ] CommandLineArgsTest.LoggingFlagsArg (0 ms) 1: [----------] 2 tests from CommandLineArgsTest (0 ms total) 1: 1: [----------] 6 tests from ConfigurationsTest 1: [ RUN ] ConfigurationsTest.Set 1: [ OK ] ConfigurationsTest.Set (0 ms) 1: [ RUN ] ConfigurationsTest.HasConfiguration 1: [ OK ] ConfigurationsTest.HasConfiguration (0 ms) 1: [ RUN ] ConfigurationsTest.SetForAllLevels 1: [ OK ] ConfigurationsTest.SetForAllLevels (0 ms) 1: [ RUN ] ConfigurationsTest.ParsingFromFile 1: [ OK ] ConfigurationsTest.ParsingFromFile (1 ms) 1: [ RUN ] ConfigurationsTest.ParsingFromText 1: [ OK ] ConfigurationsTest.ParsingFromText (0 ms) 1: [ RUN ] ConfigurationsTest.ParsingFromTextWithEscape 1: [ OK ] ConfigurationsTest.ParsingFromTextWithEscape (0 ms) 1: [----------] 6 tests from ConfigurationsTest (1 ms total) 1: 1: [----------] 3 tests from CustomFormatSpecifierTest 1: [ RUN ] CustomFormatSpecifierTest.TestInstall 1: [ OK ] CustomFormatSpecifierTest.TestInstall (0 ms) 1: [ RUN ] CustomFormatSpecifierTest.TestResolution 1: [ OK ] CustomFormatSpecifierTest.TestResolution (0 ms) 1: [ RUN ] CustomFormatSpecifierTest.TestUnInstall 1: [ OK ] CustomFormatSpecifierTest.TestUnInstall (0 ms) 1: [----------] 3 tests from CustomFormatSpecifierTest (0 ms total) 1: 1: [----------] 2 tests from LevelTest 1: [ RUN ] LevelTest.ConvertFromString 1: [ OK ] LevelTest.ConvertFromString (0 ms) 1: [ RUN ] LevelTest.ConvertToString 1: [ OK ] LevelTest.ConvertToString (0 ms) 1: [----------] 2 tests from LevelTest (0 ms total) 1: 1: [----------] 2 tests from ConfigurationTypeTest 1: [ RUN ] ConfigurationTypeTest.ConvertFromString 1: [ OK ] ConfigurationTypeTest.ConvertFromString (0 ms) 1: [ RUN ] ConfigurationTypeTest.ConvertToString 1: [ OK ] ConfigurationTypeTest.ConvertToString (0 ms) 1: [----------] 2 tests from ConfigurationTypeTest (0 ms total) 1: 1: [----------] 2 tests from DateUtilsTest 1: [ RUN ] DateUtilsTest.TimeFormatTest 1: [ OK ] DateUtilsTest.TimeFormatTest (0 ms) 1: [ RUN ] DateUtilsTest.PerformanceTrackerTest 1: [ OK ] DateUtilsTest.PerformanceTrackerTest (6608 ms) 1: [----------] 2 tests from DateUtilsTest (6608 ms total) 1: 1: [----------] 6 tests from FileUtilsTest 1: [ RUN ] FileUtilsTest.NewFileStream 1: [ OK ] FileUtilsTest.NewFileStream (0 ms) 1: [ RUN ] FileUtilsTest.GetSizeOfFile 1: [ OK ] FileUtilsTest.GetSizeOfFile (0 ms) 1: [ RUN ] FileUtilsTest.PathExists 1: [ OK ] FileUtilsTest.PathExists (5 ms) 1: [ RUN ] FileUtilsTest.ExtractPathFromFilename 1: [ OK ] FileUtilsTest.ExtractPathFromFilename (0 ms) 1: [ RUN ] FileUtilsTest.CreatePath 1: [ OK ] FileUtilsTest.CreatePath (4 ms) 1: [ RUN ] FileUtilsTest.BuildStrippedFilename 1: [ OK ] FileUtilsTest.BuildStrippedFilename (0 ms) 1: [----------] 6 tests from FileUtilsTest (9 ms total) 1: 1: [----------] 2 tests from FormatSpecifierTest 1: [ RUN ] FormatSpecifierTest.TestFBaseSpecifier 1: [ OK ] FormatSpecifierTest.TestFBaseSpecifier (2 ms) 1: [ RUN ] FormatSpecifierTest.TestLevShortSpecifier 1: [ OK ] FormatSpecifierTest.TestLevShortSpecifier (3 ms) 1: [----------] 2 tests from FormatSpecifierTest (5 ms total) 1: 1: [----------] 1 test from GlobalConfigurationTest 1: [ RUN ] GlobalConfigurationTest.Parse 1: [ OK ] GlobalConfigurationTest.Parse (1 ms) 1: [----------] 1 test from GlobalConfigurationTest (1 ms total) 1: 1: [----------] 1 test from HelpersTest 1: [ RUN ] HelpersTest.ConvertTemplateToStdString 1: /home/chri/development/swarm/conan-wrapper-easyloggingpp/src/_src/test/helpers-test.h:15: Failure 1: Expected equality of these values: 1: "[1, 2, 3, 4]" 1: strVecInt 1: Which is: "[1\n 2\n 3\n 4]" 1: With diff: 1: @@ -1,1 +1,4 @@ 1: -[1, 2, 3, 4] 1: +[1 1: + 2 1: + 3 1: + 4] 1: 1: [ FAILED ] HelpersTest.ConvertTemplateToStdString (0 ms) 1: [----------] 1 test from HelpersTest (0 ms total) 1: 1: [----------] 3 tests from RegisteredHitCountersTest 1: [ RUN ] RegisteredHitCountersTest.ValidationEveryN 1: [ OK ] RegisteredHitCountersTest.ValidationEveryN (0 ms) 1: [ RUN ] RegisteredHitCountersTest.ValidationAfterN 1: [ OK ] RegisteredHitCountersTest.ValidationAfterN (0 ms) 1: [ RUN ] RegisteredHitCountersTest.ValidationNTimes 1: [ OK ] RegisteredHitCountersTest.ValidationNTimes (0 ms) 1: [----------] 3 tests from RegisteredHitCountersTest (0 ms total) 1: 1: [----------] 3 tests from LogFormatResolutionTest 1: [ RUN ] LogFormatResolutionTest.NormalFormat 1: [ OK ] LogFormatResolutionTest.NormalFormat (0 ms) 1: [ RUN ] LogFormatResolutionTest.DefaultFormat 1: [ OK ] LogFormatResolutionTest.DefaultFormat (0 ms) 1: [ RUN ] LogFormatResolutionTest.EscapedFormat 1: [ OK ] LogFormatResolutionTest.EscapedFormat (0 ms) 1: [----------] 3 tests from LogFormatResolutionTest (0 ms total) 1: 1: [----------] 2 tests from LoggableTest 1: [ RUN ] LoggableTest.TestValidLog 1: [ OK ] LoggableTest.TestValidLog (1 ms) 1: [ RUN ] LoggableTest.MakeLoggable 1: [ OK ] LoggableTest.MakeLoggable (0 ms) 1: [----------] 2 tests from LoggableTest (1 ms total) 1: 1: [----------] 3 tests from LoggerTest 1: [ RUN ] LoggerTest.RegisterTenThousandLoggers 1: Tue Oct 08, 10:51 Performance checkpoint [Registered [1000] loggers] for block [RegisterTenThousandLoggers] : [85 ms] 1: Tue Oct 08, 10:51 Performance checkpoint [Registered [2000] loggers] for block [RegisterTenThousandLoggers] : [148 ms ([63 ms] from checkpoint 'Registered [1000] loggers')] 1: Tue Oct 08, 10:51 Performance checkpoint [Registered [3000] loggers] for block [RegisterTenThousandLoggers] : [228 ms ([80 ms] from checkpoint 'Registered [2000] loggers')] 1: Tue Oct 08, 10:51 Performance checkpoint [Registered [4000] loggers] for block [RegisterTenThousandLoggers] : [304 ms ([76 ms] from checkpoint 'Registered [3000] loggers')] 1: Tue Oct 08, 10:51 Performance checkpoint [Registered [5000] loggers] for block [RegisterTenThousandLoggers] : [371 ms ([67 ms] from checkpoint 'Registered [4000] loggers')] 1: Tue Oct 08, 10:51 Performance checkpoint [Registered [6000] loggers] for block [RegisterTenThousandLoggers] : [442 ms ([71 ms] from checkpoint 'Registered [5000] loggers')] 1: Tue Oct 08, 10:51 Performance checkpoint [Registered [7000] loggers] for block [RegisterTenThousandLoggers] : [514 ms ([72 ms] from checkpoint 'Registered [6000] loggers')] 1: Tue Oct 08, 10:51 Performance checkpoint [Registered [8000] loggers] for block [RegisterTenThousandLoggers] : [581 ms ([67 ms] from checkpoint 'Registered [7000] loggers')] 1: Tue Oct 08, 10:51 Performance checkpoint [Registered [9000] loggers] for block [RegisterTenThousandLoggers] : [650 ms ([69 ms] from checkpoint 'Registered [8000] loggers')] 1: Tue Oct 08, 10:51 Performance checkpoint [Registered [10000] loggers] for block [RegisterTenThousandLoggers] : [725 ms ([75 ms] from checkpoint 'Registered [9000] loggers')] 1: Tue Oct 08, 10:51 Performance checkpoint [10,000 loggers registered] for block [RegisterTenThousandLoggers] : [725 ms ([0 ms] from checkpoint 'Registered [10000] loggers')] 1: Tue Oct 08, 10:51 Performance checkpoint [Log written using logger8478] for block [RegisterTenThousandLoggers] : [725 ms ([0 ms] from checkpoint '10,000 loggers registered')] 1: [ OK ] LoggerTest.RegisterTenThousandLoggers (1149 ms) 1: [ RUN ] LoggerTest.CheckTenThousandLoggers 1: [ OK ] LoggerTest.CheckTenThousandLoggers (26 ms) 1: [ RUN ] LoggerTest.ValidId 1: [ OK ] LoggerTest.ValidId (0 ms) 1: [----------] 3 tests from LoggerTest (1175 ms total) 1: 1: [----------] 1 test from MacrosTest 1: [ RUN ] MacrosTest.VaLength 1: [ OK ] MacrosTest.VaLength (0 ms) 1: [----------] 1 test from MacrosTest (0 ms total) 1: 1: [----------] 2 tests from OSUtilsTest 1: [ RUN ] OSUtilsTest.GetBashOutput 1: [ OK ] OSUtilsTest.GetBashOutput (47 ms) 1: [ RUN ] OSUtilsTest.GetEnvironmentVariable 1: [ OK ] OSUtilsTest.GetEnvironmentVariable (0 ms) 1: [----------] 2 tests from OSUtilsTest (47 ms total) 1: 1: [----------] 1 test from PLogTest 1: [ RUN ] PLogTest.WriteLog 1: [ OK ] PLogTest.WriteLog (1 ms) 1: [----------] 1 test from PLogTest (1 ms total) 1: 1: [----------] 2 tests from LogDispatchCallbackTest 1: [ RUN ] LogDispatchCallbackTest.Installation 1: [ OK ] LogDispatchCallbackTest.Installation (0 ms) 1: [ RUN ] LogDispatchCallbackTest.Uninstallation 1: [ OK ] LogDispatchCallbackTest.Uninstallation (0 ms) 1: [----------] 2 tests from LogDispatchCallbackTest (0 ms total) 1: 1: [----------] 1 test from RegistryTest 1: [ RUN ] RegistryTest.RegisterAndUnregister 1: [ OK ] RegistryTest.RegisterAndUnregister (0 ms) 1: [----------] 1 test from RegistryTest (0 ms total) 1: 1: [----------] 1 test from StrictFileSizeCheckTest 1: [ RUN ] StrictFileSizeCheckTest.HandlerCalled 1: [ OK ] StrictFileSizeCheckTest.HandlerCalled (8 ms) 1: [----------] 1 test from StrictFileSizeCheckTest (8 ms total) 1: 1: [----------] 11 tests from StringUtilsTest 1: [ RUN ] StringUtilsTest.WildCardMatch 1: [ OK ] StringUtilsTest.WildCardMatch (0 ms) 1: [ RUN ] StringUtilsTest.Trim 1: [ OK ] StringUtilsTest.Trim (0 ms) 1: [ RUN ] StringUtilsTest.StartsAndEndsWith 1: [ OK ] StringUtilsTest.StartsAndEndsWith (0 ms) 1: [ RUN ] StringUtilsTest.ReplaceAll 1: [ OK ] StringUtilsTest.ReplaceAll (0 ms) 1: [ RUN ] StringUtilsTest.ToUpper 1: [ OK ] StringUtilsTest.ToUpper (0 ms) 1: [ RUN ] StringUtilsTest.CStringEq 1: [ OK ] StringUtilsTest.CStringEq (0 ms) 1: [ RUN ] StringUtilsTest.CStringCaseEq 1: [ OK ] StringUtilsTest.CStringCaseEq (0 ms) 1: [ RUN ] StringUtilsTest.Contains 1: [ OK ] StringUtilsTest.Contains (0 ms) 1: [ RUN ] StringUtilsTest.ReplaceFirstWithEscape 1: [ OK ] StringUtilsTest.ReplaceFirstWithEscape (0 ms) 1: [ RUN ] StringUtilsTest.AddToBuff 1: [ OK ] StringUtilsTest.AddToBuff (0 ms) 1: [ RUN ] StringUtilsTest.ConvertAndAddToBuff 1: [ OK ] StringUtilsTest.ConvertAndAddToBuff (0 ms) 1: [----------] 11 tests from StringUtilsTest (0 ms total) 1: 1: [----------] 2 tests from SysLogTest 1: [ RUN ] SysLogTest.WriteLog 1: /home/chri/development/swarm/conan-wrapper-easyloggingpp/src/_src/test/syslog-test.h:23: Failure 1: Value of: Str::endsWith(actual, expectedEnd) 1: Actual: false 1: Expected: true 1: [ FAILED ] SysLogTest.WriteLog (1001 ms) 1: [ RUN ] SysLogTest.DebugVersionLogs 1: /home/chri/development/swarm/conan-wrapper-easyloggingpp/src/_src/test/syslog-test.h:61: Failure 1: Value of: Str::endsWith(tail(1, kSysLogFile), expected) 1: Actual: false 1: Expected: true 1: /home/chri/development/swarm/conan-wrapper-easyloggingpp/src/_src/test/syslog-test.h:66: Failure 1: Value of: Str::endsWith(tail(1, kSysLogFile), expected) 1: Actual: false 1: Expected: true 1: /home/chri/development/swarm/conan-wrapper-easyloggingpp/src/_src/test/syslog-test.h:71: Failure 1: Value of: Str::endsWith(tail(1, kSysLogFile), expected) 1: Actual: false 1: Expected: true 1: /home/chri/development/swarm/conan-wrapper-easyloggingpp/src/_src/test/syslog-test.h:76: Failure 1: Value of: Str::endsWith(tail(1, kSysLogFile), expected) 1: Actual: false 1: Expected: true 1: [ FAILED ] SysLogTest.DebugVersionLogs (8006 ms) 1: [----------] 2 tests from SysLogTest (9007 ms total) 1: 1: [----------] 4 tests from TypedConfigurationsTest 1: [ RUN ] TypedConfigurationsTest.Initialization 1: [ OK ] TypedConfigurationsTest.Initialization (1 ms) 1: [ RUN ] TypedConfigurationsTest.SharedFileStreams 1: [ OK ] TypedConfigurationsTest.SharedFileStreams (1 ms) 1: [ RUN ] TypedConfigurationsTest.NonExistentFileCreation 1: [ OK ] TypedConfigurationsTest.NonExistentFileCreation (1 ms) 1: [ RUN ] TypedConfigurationsTest.WriteToFiles 1: [ OK ] TypedConfigurationsTest.WriteToFiles (0 ms) 1: [----------] 4 tests from TypedConfigurationsTest (3 ms total) 1: 1: [----------] 1 test from UtilitiesTest 1: [ RUN ] UtilitiesTest.SafeDelete 1: [ OK ] UtilitiesTest.SafeDelete (0 ms) 1: [----------] 1 test from UtilitiesTest (0 ms total) 1: 1: [----------] 4 tests from VerboseAppArgumentsTest 1: [ RUN ] VerboseAppArgumentsTest.AppArgsLevel 1: [ OK ] VerboseAppArgumentsTest.AppArgsLevel (0 ms) 1: [ RUN ] VerboseAppArgumentsTest.AppArgsVModules 1: [ OK ] VerboseAppArgumentsTest.AppArgsVModules (0 ms) 1: [ RUN ] VerboseAppArgumentsTest.AppArgsVModulesExtension 1: [ OK ] VerboseAppArgumentsTest.AppArgsVModulesExtension (1 ms) 1: [ RUN ] VerboseAppArgumentsTest.VModulesClear 1: [ OK ] VerboseAppArgumentsTest.VModulesClear (0 ms) 1: [----------] 4 tests from VerboseAppArgumentsTest (1 ms total) 1: 1: [----------] 11 tests from WriteAllTest 1: [ RUN ] WriteAllTest.Entry 1: [ OK ] WriteAllTest.Entry (476 ms) 1: [ RUN ] WriteAllTest.DEBUG 1: [ OK ] WriteAllTest.DEBUG (0 ms) 1: [ RUN ] WriteAllTest.INFO 1: [ OK ] WriteAllTest.INFO (1 ms) 1: [ RUN ] WriteAllTest.ERROR 1: [ OK ] WriteAllTest.ERROR (0 ms) 1: [ RUN ] WriteAllTest.WARNING 1: [ OK ] WriteAllTest.WARNING (0 ms) 1: [ RUN ] WriteAllTest.FATAL 1: [ OK ] WriteAllTest.FATAL (1 ms) 1: [ RUN ] WriteAllTest.TRACE 1: [ OK ] WriteAllTest.TRACE (0 ms) 1: [ RUN ] WriteAllTest.VERBOSE 1: [ OK ] WriteAllTest.VERBOSE (998 ms) 1: [ RUN ] WriteAllTest.EVERY_N 1: [ OK ] WriteAllTest.EVERY_N (7 ms) 1: [ RUN ] WriteAllTest.AFTER_N 1: [ OK ] WriteAllTest.AFTER_N (2 ms) 1: [ RUN ] WriteAllTest.N_TIMES 1: [ OK ] WriteAllTest.N_TIMES (1 ms) 1: [----------] 11 tests from WriteAllTest (1486 ms total) 1: 1: [----------] Global test environment tear-down 1: [==========] 79 tests from 26 test cases ran. (18353 ms total) 1: [ PASSED ] 75 tests. 1: [ FAILED ] 4 tests, listed below: 1: [ FAILED ] CommandLineArgsTest.LoggingFlagsArg 1: [ FAILED ] HelpersTest.ConvertTemplateToStdString 1: [ FAILED ] SysLogTest.WriteLog 1: [ FAILED ] SysLogTest.DebugVersionLogs

Please elaborate how to build so all tests pass. Thanks

cconnert avatar Oct 08 '19 08:10 cconnert