[PATCH 1/2] testsuites/libtests/can01: Serialize CAN write and read messages among the tasks
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Dec 15 07:27:22 UTC 2022
On 15/12/2022 08:19, Prashanth S wrote:
> >> +++ 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?
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
More information about the devel
mailing list