I'm using LDRA's TBRun on an existing project for an STM32L4 chip using Keil uVision, and trying to run a unit test sequence that is known to have succeeded on another person's machine. I'm now tasked with trying to open it on my own machine and make some small edits.
On compilation, I'm getting this error below. At first glance, it's of course quite an obvious compilation error message -- it's missing a function by the name of ldra_qq_test_comment()
with the right number of parameters.
../src/my_source.cpp:626:6: note: candidate function not viable: requires 3 arguments, but 1 was provided
void ldra_qq_test_comment (char* fmt, int start, int new_line)
^
../src/my_source.cpp:2730:5: error: no matching function for call to 'ldra_qq_test_comment'
ldra_qq_test_comment ("Set Return Value : ldra_qq_retval equals 900.0f");
But that's... not part of my source code in my_source.cpp
. The line number and code does not match anything from my code. And I certainly do not myself call any LDRA function from my source code.
On closer inspection, it appears to be some injected code by LDRA itself, ldra_qq_test_comment()
, to mention about perhaps one of the stubs or mocked functions it controls. But, why can't LDRA find its own comment function?
Am I missing a plugin or something? Any idea on how to resolve this?