From 81e12d7c2ee5e0a596fde6cf1c33f5c02df22b0a Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Mon, 7 Jun 2021 22:23:03 +0100 Subject: [PATCH] test_suite/unit_tests/Scripting/testGC.cxx: Restore nasal state when closing down. Need to restore global_nasalMinimalInit to false in NasalGCTests::tearDown(), otherwise later run of NasalSysTests::testCommands fails. --- test_suite/unit_tests/Scripting/testGC.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/test_suite/unit_tests/Scripting/testGC.cxx b/test_suite/unit_tests/Scripting/testGC.cxx index 4005bf1b2..725f67cc5 100644 --- a/test_suite/unit_tests/Scripting/testGC.cxx +++ b/test_suite/unit_tests/Scripting/testGC.cxx @@ -53,6 +53,7 @@ void NasalGCTests::setUp() // Clean up after each test. void NasalGCTests::tearDown() { + global_nasalMinimalInit = false; FGTestApi::tearDown::shutdownTestGlobals(); }