• Florian Bezdeka's avatar
    y2038: testsuite/smokey/y2038: Adding tests for event_wait64 · 4482d31c
    Florian Bezdeka authored
    Based on the tests provided by Song with the following adjustments:
      - #includes cleaned up
      - making sure all resources used during tests have are cleaned up
      - Switched to CLOCK_MONOTONIC for time measurement
        __cobalt_event_wait sets the time mode to XN_ABSOLUTE, so we have to
        use CLOCK_MONOTONIC for comparisons
      - Adding a testcase for calling event_wait64 with a zero timeout,
        which should come back immediately with EWOULDBLOCK/EAGAIN
    While at it: Adding a missing cobalt_monitor_destroy() in
    Signed-off-by: default avatarFlorian Bezdeka <florian.bezdeka@siemens.com>
    Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
syscall-tests.c 26.4 KB