[PATCH 1/2] testsuites/libtests/can01: Serialize CAN write and read messages among the tasks
Prashanth S
fishesprashanth at gmail.com
Thu Dec 15 07:38:35 UTC 2022
>> >> +++ b/testsuites/libtests/can01/init.c
>> >> @@ -48,7 +48,7 @@
>> >> if (c3 == '9') { \
>> >> if (c2 == 'z') { \
>> >> if (c1 == 'z') { \
>> >> - printf("not enough task letters for names
>> !!!\n"); \
>> >> + CAN_ERR("not enough task letters for names
>> !!!\n"); \
>> >
>> >I don't think the print statements need to be macro'd in your test, so
>> >long as they only get printed when the test fails. When it's passing,
>> >then we would prefer it be quiet.
>>
>> The CAN_ERR expands to printing the file name, line number, thread
>> id and error message.
>>
>> Can we have this information printed by expanded macro or change to
>> printf?
>
>The RTEMS Test Framework does all this. Why do we have to implement
>things specifically for this test?
Ok, updating CAN_ERR to printf.
Regards
Prashanth S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20221215/3ebc9ddc/attachment.htm>
More information about the devel
mailing list