ENVIRONMENT: Intel Core I5 running Rocky Linux 8 and Cmake/CTest 3.20.2
I include this in our top level CMakeLists.txt:
find_program(MEMORYCHECK_COMMAND valgrind) include(CTest) enable_testing()
We don’t have a dashboard server set up so I’m running the memory check with the command
ctest -T memcheck
Many of our tests don’t directly run the program under development, they run a script that runs the program. So we use –trace-children=yes to get tracing on the program we’re testing.
That mostly works, but I’m getting bizarre sequences of NUL characters dumped in the logfiles. This is NOT output from the program under test.
This makes it difficult to parse the log files to find actual valgrind error reports: