Actual Value in User Code
When I have an expected result in user code, the report only shows matched or fail. When it fails I need to know the actual value of the result.
There is an undocumented test harness function which allows this to happen. As an example we have in file uut.c the function func() which is stubbed.
int func(int p);
and an unstubbed function func2()
For the test case to pass, p must be the same as the value returned from func2(). We write expected value user code.
int value = <<uut.func.p>>;
sprintf(actual, "%d", value );
"<<uut.testfunc.p>> == func2() return",
func2() == value,
Please complete all required fields. Fields marked with * are required.