From ef6c0ead203dc567e98730e852058644673d6082 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 25 Aug 2019 10:21:36 -0400 Subject: [PATCH] unit tests code coverage #653 See https://stackoverflow.com/questions/57643813/cannot-get-gcov-to-produce-any-coverage-data --- unit_tests/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unit_tests/Makefile b/unit_tests/Makefile index f3e4e08f8f..40709aab7f 100644 --- a/unit_tests/Makefile +++ b/unit_tests/Makefile @@ -30,7 +30,7 @@ endif # C++ specific options here (added to USE_OPT). ifeq ($(USE_CPPOPT),) - USE_CPPOPT = -std=c++17 -fno-rtti -fpermissive -fexceptions -fno-use-cxa-atexit + USE_CPPOPT = -std=gnu++17 -fno-rtti -fpermissive -fexceptions -fno-use-cxa-atexit endif # Enable this if you want the linker to remove unused code and data @@ -126,7 +126,7 @@ CPPSRC = $(UTILSRC_CPP) \ $(HW_LAYER_EMS_CPP) \ $(HW_SENSORS_SRC) \ $(TRIGGER_SRC_CPP) \ - main.cpp + $(PROJECT_DIR)/../unit_tests/main.cpp # C sources to be compiled in ARM mode regardless of the global setting. @@ -174,8 +174,8 @@ INCDIR = . \ googletest/googlemock/include \ googletest/googletest \ googletest/googletest/include \ - tests \ - test_basic_math + $(PROJECT_DIR)/../unit_tests/tests \ + $(PROJECT_DIR)/../unit_tests/test_basic_math #