Dear board, I have a trivial query: I was wondering on how to properly set up the file inclusions (header and sources) when the code base under test uses qxk kernel. I am currently using the same code base for tests and device software and I managed to run some qutest unit tests when the project was based on the qk kernel, (tests were built using the qutest kernel but the code stayed the same) . As soon as I had to switch to the qxk kernel in the project I fail to build the project witht he qutest...
Dear board, I have a trivial query: I was wondering on how to properly set up the file inclusions (header and sources) when the code base under test uses qxk kernel. I am currently using the same code base for tests and device software and I managed to run some qutest unit tests when the project was based on the qk kernel, using the qutest kernel . As soon as I had to switch to the qxk kernel in the project I fail to build the project witht he qutest kernel, I am not sure what paths to include and...
Thank you Miro for your reply, I had misinterpreted the word 'equivalent' in the documentation ( I thought equivalent => also deprecated) About the heap, I completely agree and I strive to avoid using dynamic allocation in any way possible, but I am in the situation where I need to use a couple libraries which i discovered to be using dynamic allocation and I was wondering how to make them safer to use! Regards
Dear board, I have noticed on the online documentation that Q_NEW in qpcpp is deprecated, but I have looked at the examples provided and it seems it is still widely used in the dpp program to create events to be posted via POST macro. What would be the now recommended way to create dynamic events? Also, another question: when using dynamic allocation for other things within a program when using the qp framework is there an alternative allocator and deallocators instead of the default malloc/calloc/realloc/free?...
Dear board, I have noticed on the online documentation that Q_NEW in qpcpp is deprecated, but I have looked at the examples provided and it is still widely used in the dpp program to create events to be posted via POST macro. What would be the now recommended way to create dynamic events? Also, another question: when using dynamic allocation for other things within a program when using the qp framework is there an alternative allocator and deallocators instead of the default malloc/calloc/realloc/free?...
Dear board, I have noticed that Q_NEW is deprecated, but I have looked at the examples provided and it is still widely used in the dpp program to create events to be posted via POST macro. What would be the now recommended way to create dynamic events? Also, another question: when using dynamic allocation for other things within a program when using the qp framework is there an alternative allocator and deallocators instead of the default malloc/calloc/realloc/free? Regards
Thank you for pointing me into that direction, I understand those tests do not use the qutest port but the actual chosen kernel. Just a clarification regarding the scenario I mentioned earliar, are you saying that in the case I initiate an action via test script using a signal, the consequences of that signal should not produce the emission of another signal? (ie : a routine to interrogate an external device is triggered by the script signal->the queried peripheral responds->causes an interrupt and...
Dear board, I have read that Qutest is meant to be used as a unit test framework, but since it sports a very broad capability to inject commands and test responses I was wondering if there was a way to employ qutest scripts to launch simple tests on the real hardware of a device. As an example my goal could be to trigger the mcu to query an external device via script command, and then wait for the response to be then received and processed checking that the appropriate signals transitions are performed....