1
0
Fork 0

src/Scripting/NasalSys.cxx: avoid noisy diagnosic if running test-suite.

This commit is contained in:
Julian Smith 2021-06-05 12:24:58 +01:00
parent 0a0d0adc5f
commit 97a25b79ea

View file

@ -1341,12 +1341,13 @@ void FGNasalSys::addModule(string moduleName, simgear::PathList scripts)
SGPropertyNode* node = module_node->getChild("enabled",0,true); SGPropertyNode* node = module_node->getChild("enabled",0,true);
node->setBoolValue(false); node->setBoolValue(false);
node->setAttribute(SGPropertyNode::USERARCHIVE,false); node->setAttribute(SGPropertyNode::USERARCHIVE,false);
SG_LOG(SG_NASAL, SG_ALERT, "Nasal module " << #ifndef BUILDING_TESTSUITE
moduleName << SG_LOG(SG_NASAL, SG_ALERT, "Nasal module " << moduleName
" present in FGDATA/Nasal but not configured in defaults.xml. " << << " present in FGDATA/Nasal but not configured in defaults.xml. "
" Please add an entry to defaults.xml, and set " << " Please add an entry to defaults.xml, and set " << node->getPath()
<< node->getPath() << << "=true to load the module on-demand at runtime when required."
"=true to load the module on-demand at runtime when required."); );
#endif
} }
} }
} }