[RTEMS Project] #4690: CLOCK_REALTIME thread queue not updated as part of clock_settime call

RTEMS trac trac at rtems.org
Mon Aug 1 06:56:47 UTC 2022


#4690: CLOCK_REALTIME thread queue not updated as part of clock_settime call
-------------------------+---------------------
 Reporter:  Chris Johns  |       Owner:  (none)
     Type:  defect       |      Status:  new
 Priority:  normal       |   Milestone:  6.1
Component:  score        |     Version:  6
 Severity:  normal       |  Resolution:
 Keywords:               |  Blocked By:
 Blocking:               |
-------------------------+---------------------

Comment (by Chris Johns):

 The attached test checks the times. It will show the failure however it
 does not pass the initial check because the expected ticks is not the
 actual ticks. The failure is:
 {{{
 Clock settime while sleeping: step=0
 clock: nanosleep: sec=0 nsec=500000000 ticks=51 expected-ticks=50
 ../../../testsuites/psxtests/psxclock/init.c: 120 ctx->ticks == ticks
 }}}
 Should the ticks the sleeper sees be `51` or `50`?

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


More information about the bugs mailing list