fix SDL_main windows thingy

This commit is contained in:
Green Sky 2022-11-01 18:44:34 +01:00
parent 8e5471480c
commit 9af3df5550
No known key found for this signature in database
8 changed files with 34 additions and 0 deletions

View File

@ -4,6 +4,8 @@
//#include <physfs.h>
#include <nlohmann/json.hpp>
#include <SDL.h> // SDL_main
#include <mm/fs_const_archiver.hpp>
#include <mm/logger.hpp>

View File

@ -146,3 +146,8 @@ TEST(input_service, input_visualizer) {
sdl_ss.destroyWindow();
}
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

View File

@ -136,3 +136,8 @@ TEST(simple_spritesheet_render_task, it) {
engine.run();
}
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

View File

@ -121,3 +121,8 @@ TEST(tilemap_render_task_test, it) {
engine.run();
}
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

View File

@ -115,3 +115,8 @@ TEST(sdl_service, event_handle_reg) {
engine.disableService<MM::Services::SDLService>();
}
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

View File

@ -36,3 +36,8 @@ TEST(simple_sdl_renderer, basic) {
engine.run();
}
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

View File

@ -4,6 +4,8 @@
#include <mm/services/filesystem.hpp>
#include <mm/soloud_filesystem_file_impl.hpp>
#include <SDL.h> // SDL_main
#include <soloud_wav.h>
#include <soloud_wavstream.h>
#include <soloud_monotone.h>

View File

@ -51,3 +51,8 @@ TEST(player_velocity, basic_run) {
// TODO: TEST
}
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}