From 09a092475edeb672ab70dd7e1635fa92eacfaff7 Mon Sep 17 00:00:00 2001 From: Daniel Evans Date: Mon, 6 Aug 2018 23:02:07 +0100 Subject: [PATCH] Test Fixture --- tests/test_LoaderIPL.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_LoaderIPL.cpp b/tests/test_LoaderIPL.cpp index 8c764835..02f5fcc0 100644 --- a/tests/test_LoaderIPL.cpp +++ b/tests/test_LoaderIPL.cpp @@ -2,11 +2,14 @@ #include #include "test_Globals.hpp" -BOOST_AUTO_TEST_SUITE(LoaderIPLTests) +struct WithLoaderIPL { + LoaderIPL loader; +}; + +BOOST_FIXTURE_TEST_SUITE(LoaderIPLTests, WithLoaderIPL) #if RW_TEST_WITH_DATA BOOST_AUTO_TEST_CASE(test_load_zones) { - LoaderIPL loader; const auto& gdpath = Global::get().getGamePath(); BOOST_REQUIRE(loader.load(gdpath + "/data/gta3.zon"));