From 97a25b79ea98ba168dc3ff44a59d0f9244c4844f Mon Sep 17 00:00:00 2001 From: Julian Smith <jules@op59.net> Date: Sat, 5 Jun 2021 12:24:58 +0100 Subject: [PATCH] src/Scripting/NasalSys.cxx: avoid noisy diagnosic if running test-suite. --- src/Scripting/NasalSys.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 14457a128..850a05e19 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -1341,12 +1341,13 @@ void FGNasalSys::addModule(string moduleName, simgear::PathList scripts) SGPropertyNode* node = module_node->getChild("enabled",0,true); node->setBoolValue(false); node->setAttribute(SGPropertyNode::USERARCHIVE,false); - SG_LOG(SG_NASAL, SG_ALERT, "Nasal module " << - moduleName << - " present in FGDATA/Nasal but not configured in defaults.xml. " << - " Please add an entry to defaults.xml, and set " - << node->getPath() << - "=true to load the module on-demand at runtime when required."); + #ifndef BUILDING_TESTSUITE + SG_LOG(SG_NASAL, SG_ALERT, "Nasal module " << moduleName + << " present in FGDATA/Nasal but not configured in defaults.xml. " + << " Please add an entry to defaults.xml, and set " << node->getPath() + << "=true to load the module on-demand at runtime when required." + ); + #endif } } }