Closed pflarue closed 1 month ago
I would definitely try a make clean
first, if you haven't already.
Does the same failure happen on 32-bit vs 64-bit builds?
Can you get me a stack trace and local variable dump of where the problem occurs? To get a useful stack trace, you will need to add a breakpoint on the _fail
function, which is part of cmocka. See the example gdb session below.
The failure message suggests that our mocked fopen()
is receiving a nullptr for its path name. This shouldn't be possible within ardop_logfile_handle()
, but perhaps something very strange is happening.
@cbs228 Thanks for helping me understand the error message. PR #98 fixes the problem.
I'm seeing the following when running
mingw32-make test
on Windows (both 32bit and 64bit mingw):A second identical error is produced for
test_ardop_logfile_write
.Though these tests are failing, log files are being written correctly during ardopcf use.
I know that I tested PR #88 on Windows before merging it, but it is possible that I failed to run the final version of these tests (or else I would have encountered this error then.)
I've been using my Linux machines to work on some new fixes, and found this error upon switching to Windows to try the new changes there.
@cbs228 can you offer any suggestions?