From b3b2a1ece277f3e5862db7389356a0473e56cbcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 2 Aug 2017 23:48:10 +0200 Subject: [PATCH] Improve multilaunch test to delete the load result --- test/tests/MultiLaunch.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/tests/MultiLaunch.cpp b/test/tests/MultiLaunch.cpp index 8adb070d33..5d6f067b61 100644 --- a/test/tests/MultiLaunch.cpp +++ b/test/tests/MultiLaunch.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include "TestData.h" extern "C" @@ -29,7 +30,11 @@ TEST(MultiLaunchTest, all) bool initialised = context->Initialise(); ASSERT_TRUE(initialised); - game_load_sv6_path(path.c_str()); + ParkLoadResult * plr = game_load_sv6_path(path.c_str()); + + ASSERT_EQ(ParkLoadResult_GetError(plr), PARK_LOAD_ERROR_OK); + ParkLoadResult_Delete(plr); + game_load_init(); // Check ride count to check load was successful