Tests fixed into working order

This commit is contained in:
2015-10-01 10:53:29 +02:00
parent 5e7e5ec8bb
commit ba67f6ea37
2 changed files with 6 additions and 7 deletions
+5 -6
View File
@@ -1,18 +1,17 @@
project(tests) project(tests)
find_package(PNG REQUIRED)
find_package(Boost REQUIRED COMPONENTS chrono thread unit_test_framework) find_package(Boost REQUIRED COMPONENTS chrono thread unit_test_framework)
include_directories( include_directories(
${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/include
${PNG_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
) )
set(SOURCE_FILES
main.cpp file(GLOB SOURCE_FILES
FileWatcherTest.cpp "*.cpp"
EventTest.cpp
ComponentCopyTest.cpp
EntityCloneTest.cpp
) )
if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX)
+1 -1
View File
@@ -40,7 +40,7 @@ struct EventFixture
// Publish the event // Publish the event
this->EventBroker->Publish(Before); this->EventBroker->Publish(Before);
// Clear to swap buffers // Clear to swap buffers
this->EventBroker->Clear(); this->EventBroker->Swap();
// Process the event // Process the event
this->EventBroker->template Process<EventFixture>(); this->EventBroker->template Process<EventFixture>();
} }