Browse Source

Seperate main(...) for binary and tests

pull/1979/head
obligaron 5 years ago committed by Anders Jenbo
parent
commit
6fb1b0fed9
  1. 7
      Source/main.cpp
  2. 7
      test/main.cpp

7
Source/main.cpp

@ -5,9 +5,6 @@
#ifdef __3DS__
#include "platform/ctr/system.h"
#endif
#ifdef RUN_TESTS
#include <gtest/gtest.h>
#endif
#ifdef GPERF_HEAP_MAIN
#include <gperftools/heap-profiler.h>
#endif
@ -23,10 +20,6 @@ extern "C" const char *__asan_default_options()
int main(int argc, char **argv)
{
#ifdef RUN_TESTS
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
#endif
#ifdef __SWITCH__
switch_enable_network();
#endif

7
test/main.cpp

@ -0,0 +1,7 @@
#include <gtest/gtest.h>
int main(int argc, char **argv)
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
Loading…
Cancel
Save