[RTEMS Project] #2288: Use of assert()

RTEMS trac trac at rtems.org
Sat May 16 09:42:56 UTC 2015


#2288: Use of assert()
---------------------------+-------------------
 Reporter:  joel.sherrill  |       Owner:
     Type:  defect         |      Status:  new
 Priority:  normal         |   Milestone:  4.11
Component:  General        |     Version:  4.11
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+-------------------

Comment (by sebastian.huber):

 The problem with rtems_test_assert() is that it ends up in exit() which is
 not a good idea in certain tests.

 The assert() in c/ should get converted to bsp_fatal().  In cpukit to
 _Assert() or a fatal error with a unique (source, code).  Maybe we should
 add a rtems_assert() (like assert() but controlled via RTEMS_DEBUG).

--
Ticket URL: <http://devel.rtems.org/ticket/2288#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list