jeudi 29 octobre 2015

VectorCast test function pointer

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!!

Aucun commentaire:

Enregistrer un commentaire