From 3c8659ed690c6a49421186f4bd3d6f151e799bd7 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Sun, 25 Feb 2024 18:03:56 -0300 Subject: [PATCH] Use headless_no_graphic on tests --- test/tests/ScenarioPatcherTests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/tests/ScenarioPatcherTests.cpp b/test/tests/ScenarioPatcherTests.cpp index 13d5da180e..0fee8d753a 100644 --- a/test/tests/ScenarioPatcherTests.cpp +++ b/test/tests/ScenarioPatcherTests.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include #include @@ -22,6 +23,9 @@ */ TEST(FetchAndApplyScenarioPatch, expected_json_format) { + // Needs to be headless and without graphics not to prompt for RCT2 path + gOpenRCT2Headless = true; + gOpenRCT2NoGraphics = true; auto context = OpenRCT2::CreateContext(); bool initialised = context->Initialise(); ASSERT_TRUE(initialised);