1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-04 08:07:17 +02:00

tests: only include test_globals.hpp when needed

This commit is contained in:
Anonymous Maarten 2017-02-20 17:56:59 +01:00 committed by Daniel Evans
parent 9e20ad6c20
commit 9e9e684a44
11 changed files with 6 additions and 13 deletions

View File

@ -1,6 +1,6 @@
#include <boost/test/unit_test.hpp>
#include <platform/FileIndex.hpp>
#include <test_globals.hpp>
#include "test_globals.hpp"
BOOST_AUTO_TEST_SUITE(FileIndexTests)

View File

@ -1,6 +1,6 @@
#include <boost/test/unit_test.hpp>
#include <engine/GameData.hpp>
#include <test_globals.hpp>
#include "test_globals.hpp"
BOOST_AUTO_TEST_SUITE(GameDataTests)
@ -94,7 +94,6 @@ BOOST_AUTO_TEST_CASE(test_ped_groups) {
BOOST_REQUIRE_GE(red.size(), 8);
BOOST_CHECK_EQUAL(red[0], 34);
}
#endif

View File

@ -2,7 +2,7 @@
#include <engine/GameData.hpp>
#include <engine/GameWorld.hpp>
#include <objects/InstanceObject.hpp>
#include <test_globals.hpp>
#include "test_globals.hpp"
BOOST_AUTO_TEST_SUITE(GameWorldTests)

View File

@ -1,6 +1,5 @@
#include <GameInput.hpp>
#include <boost/test/unit_test.hpp>
#include "GameInput.hpp"
#include "test_globals.hpp"
BOOST_AUTO_TEST_SUITE(InputTests)

View File

@ -1,6 +1,5 @@
#include <boost/test/unit_test.hpp>
#include <core/Logger.hpp>
#include <test_globals.hpp>
class CallbackReceiver : public Logger::MessageReceiver {
public:

View File

@ -2,7 +2,8 @@
#include <engine/GameState.hpp>
#include <engine/SaveGame.hpp>
#include <script/ScriptMachine.hpp>
#include <test_globals.hpp>
#include "test_globals.hpp"
#if 0 // Disabled until we make a start on saving the game
BOOST_AUTO_TEST_SUITE(SaveGameTests)

View File

@ -1,6 +1,5 @@
#include <boost/test/unit_test.hpp>
#include <render/VisualFX.hpp>
#include <test_globals.hpp>
BOOST_AUTO_TEST_SUITE(VisualFXTests)

View File

@ -1,6 +1,5 @@
#include <MenuSystem.hpp>
#include <boost/test/unit_test.hpp>
#include "test_globals.hpp"
BOOST_AUTO_TEST_SUITE(MenuUnitTests)

View File

@ -1,6 +1,5 @@
#include <boost/test/unit_test.hpp>
#include <render/GameRenderer.hpp>
#include "test_globals.hpp"
BOOST_AUTO_TEST_SUITE(RendererTests)

View File

@ -1,7 +1,6 @@
#include <boost/test/unit_test.hpp>
#include <script/SCMFile.hpp>
#include <script/ScriptMachine.hpp>
#include "test_globals.hpp"
SCMByte data[] = {0x02, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
0x01, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

View File

@ -1,6 +1,5 @@
#include <State.hpp>
#include <boost/test/unit_test.hpp>
#include "test_globals.hpp"
BOOST_AUTO_TEST_SUITE(StateUnitTests)