From 1e403ae6dd7334080c76a9c8c7ef2dbc1e273459 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 22 Jul 2020 11:49:14 +0100 Subject: [PATCH] Fix an assert running aero tests FGLocale needs to be init-ed, before calling splash progress. --- test_suite/FGTestApi/scene_graph.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_suite/FGTestApi/scene_graph.cxx b/test_suite/FGTestApi/scene_graph.cxx index 877f836a1..b053987e5 100644 --- a/test_suite/FGTestApi/scene_graph.cxx +++ b/test_suite/FGTestApi/scene_graph.cxx @@ -21,6 +21,7 @@ #include
#include
+#include
#include #include #include @@ -37,6 +38,9 @@ void initScenery() SG_LOG(SG_GENERAL, SG_ALERT, "Cannot read the global defaults from \"" << defaultsXML.utf8Str() << "\"."); fgLoadProps("defaults.xml", globals->get_props()); + // otherwise fgSplashProgress will assert + globals->get_locale()->selectLanguage({}); + // Set up the renderer. osg::ref_ptr viewer = new osgViewer::Viewer; FGRenderer* render = globals->get_renderer();