VectorCast test function pointer

时间:2015-10-29 16:02:06

标签: unit-testing

I am having problems testing a scenario in VectorCast. Dont know what it expects ?

here is the thing.

I am testing a function - say FuncA which calls int FuncB ( ENUM, &FuncC )

I want to Stub FuncB and pass Enum and check if FuncC address is passed.

While stubbing, user code for the second parameter I gave was like this

<> = ( FuncC );

I tried putting it in Input and Expected section both

It takes lot of time t execute and then fails with the Harness Error

Can you please give a solution to this?

Thanks!!

0 个答案:

没有答案