From c3fce7e4361889345e9d58481f6c62292eab5f3d Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 2 Jul 2020 12:13:53 +0100 Subject: [PATCH] Tests: load loadprioirty.xml Otherwise we screw up Nasal load order. --- test_suite/FGTestApi/testGlobals.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test_suite/FGTestApi/testGlobals.cxx b/test_suite/FGTestApi/testGlobals.cxx index c6b788af8..bede4df29 100644 --- a/test_suite/FGTestApi/testGlobals.cxx +++ b/test_suite/FGTestApi/testGlobals.cxx @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -111,6 +112,11 @@ void initStandardNasal(bool withCanvas) auto nasalNode = globals->get_props()->getNode("nasal", true); +// load loadpriority.xml, for default modules load order + + auto nasalLoadPriority = globals->get_props()->getNode("/sim/nasal-load-priority",true); + readProperties(globals->get_fg_root() / "Nasal/loadpriority.xml", nasalLoadPriority); + // set various props to reduce Nasal errors auto props = globals->get_props(); props->setStringValue("sim/flight-model", "null");