|
Post by Arturo Salinas on Dec 15, 2011 17:55:17 GMT -5
Hi, I am compiling the testape example on Linux 64bit. I followed your instructions with the sample1 but when I executed the output binary I got this: [esekits1069]/home/esalart/TestApe/samples>./testSample1 testape: TestApe test executable testape: Unit testing for embedded software - testape.comtestape: testape: Test executable initializing testape: testape: Executing test testmain testape: testape: Executing test test_addition testape: testape: FAILED number of called functions testape: expected .......... testape: actual ............ add testape: testape: FAILED test test_addition (1 error) testape: Number of called functions testape: testape: FAILED test testmain (1 error) testape: Execution of test testape: testape: testape: testape: Test exeutable terminating testape: exitcode 1 What does it mean? Thanks
|
|
|
Post by Martin Nielsen on Dec 17, 2011 10:09:26 GMT -5
Hi Artura
It means that testape has detected a function call to "add" that was unexpected at this time.
TestApe will complain about all function calls to default mocks, that has not been mentioned in an EXPECT, ALLOW statement.
Since add has been replaced with a default mock, I would assume that you forgot to include "add.c" when you compiled the test executable.
Alternatively, you can add EXPECT(add) to the testmain function.
It might be something else entirely, but then I need to see what commandline you used in order to generate ./testSample1
Br, Martin
|
|