| 68 | */ |
| 69 | |
| 70 | bool testPost(Semaphore& semaphore) |
| 71 | { |
| 72 | waitForNextTick(); |
| 73 | const auto start = TickClock::now(); |
| 74 | const auto ret = semaphore.post(); |
| 75 | return ret == 0 && start == TickClock::now() && semaphore.getValue() > 0; |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * \brief Tests Semaphore::tryWait() when semaphore is locked - it must fail immediately and return EAGAIN |
no test coverage detected