diff options
author | Alexander Harkness <me@bearbin.net> | 2015-06-12 12:00:47 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2015-06-12 12:00:47 +0200 |
commit | 001305247fa28e78d0f3d9d565ff7aff25864edc (patch) | |
tree | 9f1e41fa0e6afee7ce9f90f3778f02e7a770ebf7 /src/Root.cpp | |
parent | Update gratipay (diff) | |
parent | SelfTests are registered and executed after logging framework init. (diff) | |
download | cuberite-001305247fa28e78d0f3d9d565ff7aff25864edc.tar cuberite-001305247fa28e78d0f3d9d565ff7aff25864edc.tar.gz cuberite-001305247fa28e78d0f3d9d565ff7aff25864edc.tar.bz2 cuberite-001305247fa28e78d0f3d9d565ff7aff25864edc.tar.lz cuberite-001305247fa28e78d0f3d9d565ff7aff25864edc.tar.xz cuberite-001305247fa28e78d0f3d9d565ff7aff25864edc.tar.zst cuberite-001305247fa28e78d0f3d9d565ff7aff25864edc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Root.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index 8d344ee65..8ad71edf3 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -21,6 +21,7 @@ #include "IniFile.h" #include "SettingsRepositoryInterface.h" #include "OverridesSettingsRepository.h" +#include "SelfTests.h" #ifdef _WIN32 #include <conio.h> @@ -111,11 +112,16 @@ void cRoot::Start(std::unique_ptr<cSettingsRepositoryInterface> overridesRepo) cLogger::GetInstance().AttachListener(consoleLogListener); cLogger::GetInstance().AttachListener(fileLogListener); - LOG("--- Started Log ---\n"); + LOG("--- Started Log ---"); #ifdef BUILD_ID - LOG("MCServer " BUILD_SERIES_NAME " build id: " BUILD_ID); - LOG("from commit id: " BUILD_COMMIT_ID " built at: " BUILD_DATETIME); + LOG("MCServer " BUILD_SERIES_NAME " build id: " BUILD_ID); + LOG("from commit id: " BUILD_COMMIT_ID " built at: " BUILD_DATETIME); + #endif + + // Run the self-tests registered previously via cSelfTests::Register(): + #if SELF_TEST + cSelfTests::ExecuteAll(); #endif cDeadlockDetect dd; @@ -869,3 +875,8 @@ int cRoot::GetFurnaceFuelBurnTime(const cItem & a_Fuel) cFurnaceRecipe * FR = Get()->GetFurnaceRecipe(); return FR->GetBurnTime(a_Fuel); } + + + + + |