+1
0
-1

Checking variable changed in subbed function through pointer

Hello All,

I'm creating unit tests for embedded software, and I have encountered a problem that I didn't find the solution to in a few hours of searching, and I'm hoping you...

Posting in: 

5 Answers:

+1
0
-1

Hello Mr.Kardon Sebestyen,

                                                As per the unit testing paradigm , the tool can control global variables, the values that are passed into a...

+1
0
-1

Dear Mr. Srinivas,

thank you for your kind reply, probe points seem to be the way to go.

Best regards,
Sebestyen Kardon

+1
0
-1

Dear Srinivas,

Thanks for the answer. I am too looking for solution on a similar problem.
Probe points is a really a solution I was looking for however it works per unit basis i.e....

+1
+1
-1

Hello Amey,

Yes, you can do that. The probe point code would look like.

if(vcast_test_name_equals("test.001"))

{

 code for test.001

}

else

{

...
+1
0
-1

Thank you Brian.
This solution works for me, but of course as you mentioned; have to be careful while editing the test case name.

Best regards
Amey