From 0fe18e1d8454a83ef731c87f5a021ae794966601 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Fri, 31 Oct 2025 19:43:38 +0100 Subject: [PATCH] Enable test loading all templates The test takes about 0.5s in release build and about 2s in debug build, hardly qualifying as slow. As such enable it. About the noise, it's of little interest anyway so don't spam. Signed-off-by: Ralph Sennhauser --- source/simulation2/tests/test_CmpTemplateManager.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/simulation2/tests/test_CmpTemplateManager.h b/source/simulation2/tests/test_CmpTemplateManager.h index 57a80633c6..3b38264345 100644 --- a/source/simulation2/tests/test_CmpTemplateManager.h +++ b/source/simulation2/tests/test_CmpTemplateManager.h @@ -247,7 +247,7 @@ public: } // This just attempts loading every public entity, to check there's no validation errors - void DISABLED_test_load_all() // disabled since it's a bit slow and noisy + void test_load_all() { CXeromycesEngine xeromycesEngine; CTerrain dummy; @@ -262,7 +262,6 @@ public: for (size_t i = 0; i < templates.size(); ++i) { std::string name = templates[i]; - printf("# %s\n", name.c_str()); const CParamNode* p = cmpTemplateManager->GetTemplate(name); TS_ASSERT(p != NULL); }