Add defien to not compile main when building unittests

pull/32/head
Geoffrey Merck 4 years ago
parent 1395c4bc68
commit 249af92976

@ -41,6 +41,7 @@
#include "APRSGPSDIdFrameProvider.h" #include "APRSGPSDIdFrameProvider.h"
#include "APRSFixedIdFrameProvider.h" #include "APRSFixedIdFrameProvider.h"
#ifndef UNIT_TESTS
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
setbuf(stdout, NULL); setbuf(stdout, NULL);
@ -69,6 +70,7 @@ int main(int argc, char *argv[])
return 0; return 0;
} }
#endif
CDStarGatewayApp::CDStarGatewayApp(const std::string &configFile) : m_configFile(configFile), m_thread(NULL) CDStarGatewayApp::CDStarGatewayApp(const std::string &configFile) : m_configFile(configFile), m_thread(NULL)
{ {

Loading…
Cancel
Save

Powered by TurnKey Linux.