- Timestamp:
- Oct 24, 2010 2:33:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstSupSem.cpp
r33167 r33383 308 308 uint64_t u64Start = RTTimeNanoTS(); 309 309 int rcX = SUPSemEventWaitNoResume(pSession, hEvent, cMs); 310 if (rc == VERR_TIMEOUT)310 if (rcX != VERR_TIMEOUT) 311 311 RTTestFailed(hTest, "%Rrc j=%u cMs=%u", rcX, j, cMs); 312 312 uint64_t cNsElapsedSys = RTTimeSystemNanoTS() - u64StartSys; … … 351 351 uint64_t u64Start = RTTimeNanoTS(); 352 352 int rcX = SUPSemEventMultiWaitNoResume(pSession, hEvent, cMs); 353 if (rc == VERR_TIMEOUT)353 if (rcX != VERR_TIMEOUT) 354 354 RTTestFailed(hTest, "%Rrc j=%u cMs=%u", rcX, j, cMs); 355 355 uint64_t cNsElapsedSys = RTTimeSystemNanoTS() - u64StartSys; … … 402 402 uint64_t u64Start = RTTimeNanoTS(); 403 403 int rcX = SUPSemEventWaitNsRelIntr(pSession, hEvent, cNs); 404 if (rc == VERR_TIMEOUT)404 if (rcX != VERR_TIMEOUT) 405 405 RTTestFailed(hTest, "%Rrc j=%u cNs=%u", rcX, j, cNs); 406 406 uint64_t cNsElapsedSys = RTTimeSystemNanoTS() - u64StartSys; … … 446 446 uint64_t u64Start = RTTimeNanoTS(); 447 447 int rcX = SUPSemEventMultiWaitNsRelIntr(pSession, hEvent, cNs); 448 if (rc == VERR_TIMEOUT)448 if (rcX != VERR_TIMEOUT) 449 449 RTTestFailed(hTest, "%Rrc j=%u cNs=%u", rcX, j, cNs); 450 450 uint64_t cNsElapsedSys = RTTimeSystemNanoTS() - u64StartSys; … … 491 491 uint64_t uAbsDeadline = (fGip ? u64Start : u64StartSys) + cNs; 492 492 int rcX = SUPSemEventWaitNsAbsIntr(pSession, hEvent, uAbsDeadline); 493 if (rc == VERR_TIMEOUT)493 if (rcX != VERR_TIMEOUT) 494 494 RTTestFailed(hTest, "%Rrc j=%u cNs=%u", rcX, j, cNs); 495 495 uint64_t cNsElapsedSys = RTTimeSystemNanoTS() - u64StartSys; … … 537 537 uint64_t uAbsDeadline = (fGip ? u64Start : u64StartSys) + cNs; 538 538 int rcX = SUPSemEventMultiWaitNsAbsIntr(pSession, hEvent, uAbsDeadline); 539 if (rc == VERR_TIMEOUT)539 if (rcX != VERR_TIMEOUT) 540 540 RTTestFailed(hTest, "%Rrc j=%u cNs=%u", rcX, j, cNs); 541 541 uint64_t cNsElapsedSys = RTTimeSystemNanoTS() - u64StartSys;
Note:
See TracChangeset
for help on using the changeset viewer.