Hi all,
I have a problem trying to use Qemu as the fixture to run unit tests on an emulated Microblaze.
I think everything is quite up and running, and if I execute Qemu with the compiled runner I can get the expected unity output on the console, through the emulated UART, that contains the output of the tests, the number of executed, failed and ignored tests.
TEST Example!
test_example.c:2:test_example:PASS
TEST Example #2!
test_example.c:110:test_example2:PASS
-----------------------
2 Tests 0 Failures 0 Ignored
OK
This is the command line I use to run the executable created by Ceedling with Qemu:
it fails saying that the number of test executed by unity (2) differs from the one reported by the fixture (0).
ERROR: Internal sanity check for test fixture 'test_example.elf' finds that Unity's final test count (2) does not match Ceedling's summation of all test cases (0).
Can this be somehow related to the exit code of the fixture? Since Qemu always exits with a 0 value...
Is there any document that explains the interfaces a fixture shall implement to properly work with Ceedling/Unity?
Hi all, I have a problem trying to use Qemu as the fixture to run unit tests on an emulated Microblaze. I think everything is quite up and running, and if I execute Qemu with the compiled runner I can get the expected unity output on the console, through the emulated UART, that contains the output of the tests, the number of executed, failed and ignored tests.
This is the command line I use to run the executable created by Ceedling with Qemu:
However, if I run the test through Ceedling using Qemu as the fixture, as follows,
it fails saying that the number of test executed by unity (2) differs from the one reported by the fixture (0).
Can this be somehow related to the exit code of the fixture? Since Qemu always exits with a 0 value...
Is there any document that explains the interfaces a fixture shall implement to properly work with Ceedling/Unity?
Thank you very much for your support!