I have a Scheduler component utilizing a libcron library that I am currently in the process unit testing. There is an async command GET_SCHEDULE_LIST defined in Scheduler.fpp. In Scheduler.cpp, the command handler is as follows:
The destFileName argument corresponds with other code in this function that has currently been commented out in order to isolate the issue with unit testing. In SchedulerTester.cpp:
This basic test is failing. The LastTest.log records that the expected size is 1, but the actual is 0. I am confused... am I not sending the command correctly? In SchedulerTester.cpp, I did not edit the fprime generated content, except for constructing a Scheduler object in the tester cpp & declaring it in hpp, as errors in fprime-util build --ut prompted me to.
Any help would be appreciated as I am still learning how to test the deployment.
I have a Scheduler component utilizing a libcron library that I am currently in the process unit testing. There is an
async command GET_SCHEDULE_LIST
defined in Scheduler.fpp. In Scheduler.cpp, the command handler is as follows:The destFileName argument corresponds with other code in this function that has currently been commented out in order to isolate the issue with unit testing. In SchedulerTester.cpp:
This basic test is failing. The LastTest.log records that the expected size is 1, but the actual is 0. I am confused... am I not sending the command correctly? In SchedulerTester.cpp, I did not edit the fprime generated content, except for constructing a Scheduler object in the tester cpp & declaring it in hpp, as errors in fprime-util build --ut prompted me to.
Any help would be appreciated as I am still learning how to test the deployment.