I am trying to run the code coverage on a C/C++ software. The generation of gcno files is fine (I have more than 6000 of them) while I only get 240 gcda files.
I am running Mac OS X 10.9.3 with Xcode 5.5.1. Building with:
export CFLAGS="-fprofile-arcs -ftest-coverage"
export CXXFLAGS="-fprofile-arcs -ftest-coverage"
export LDFLAGS="-fprofile-arcs -ftest-coverage --coverage"
I saw a potential solution with gcov_flush(): Generate gcda-files with Xcode5, iOS7 simulator and XCTest but I don't want to touch the sources of the software or the tests (and I would like to avoid Objective-C). Any clue?