Closed stkw0 closed 2 months ago
Hi, the unit tests are still a WIP. I’ve been trying to setup a good tests system however it’s tricky to test a library like this. If you try the demo executable, are traces generated correctly? What operating system are you on?
I am on Linux. I seen that setting -ggdb flag the unit tests pass. It was more trivial than I thought. Maybe the cmake file for tests should be updated to enable debug symbols?
Oh, gotcha :) I always build with -DCMAKE_BUILD_TYPE=Debug or RelWithDebInfo, however, I do think it would make sense to include debug symbols unconditionally.
Now using -g unconditionally in dev
Seems some tests are failing. I am not sure what are the cause or if there is something more on my side that I should fix.
The short log:
I am using libdwarf-0.9.2 and gtest 1.14.0. cpptrace was compiled with gcc 14.1.1 See full log here: test_fail.txt
Thank you very much.