libtests/can01: Excessive test output

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Nov 28 14:11:16 UTC 2022


Hello Prashanth,

the test program libtests/can01 produces a lot of output (more than 7000 
lines). Could you please strip this down to a reasonable amount (less 
than 100).

What are the test objectives? From looking at the assertions, not much 
from the CAN framework is tested:

grep -r assert testsuites/libtests/can01/
testsuites/libtests/can01/init.c:  rtems_test_assert(fd >= 0);
testsuites/libtests/can01/init.c:    rtems_test_assert(count == msg_size);
testsuites/libtests/can01/init.c:    rtems_test_assert(count > 0);
testsuites/libtests/can01/init.c:    rtems_test_assert(result == 
RTEMS_SUCCESSFUL);
testsuites/libtests/can01/init.c:    rtems_test_assert(result == 
RTEMS_SUCCESSFUL);
testsuites/libtests/can01/init.c:    rtems_test_assert(ret == 
RTEMS_SUCCESSFUL);

The test objectives should be checked by assertions. If one of them 
fails, then no end of test message should be printed.

-- 
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