From 249af92976f7f7cde194e1725f0c18ee936f0228 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Sun, 2 Jan 2022 21:29:55 +0100 Subject: [PATCH] Add defien to not compile main when building unittests --- DStarGatewayApp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DStarGatewayApp.cpp b/DStarGatewayApp.cpp index 6150d62..37e520a 100644 --- a/DStarGatewayApp.cpp +++ b/DStarGatewayApp.cpp @@ -41,6 +41,7 @@ #include "APRSGPSDIdFrameProvider.h" #include "APRSFixedIdFrameProvider.h" +#ifndef UNIT_TESTS int main(int argc, char *argv[]) { setbuf(stdout, NULL); @@ -69,6 +70,7 @@ int main(int argc, char *argv[]) return 0; } +#endif CDStarGatewayApp::CDStarGatewayApp(const std::string &configFile) : m_configFile(configFile), m_thread(NULL) {