mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Use headless_no_graphic on tests
This commit is contained in:
parent
18c55ba241
commit
3c8659ed69
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include <gtest/gtest.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
#include <openrct2/PlatformEnvironment.h>
|
||||
#include <openrct2/core/FileSystem.hpp>
|
||||
#include <openrct2/core/Guard.hpp>
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue