Changeset 47745 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Aug 15, 2013 7:24:10 AM (11 years ago)
- Location:
- trunk/src/VBox/Runtime/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTR0Timer.cpp
r47642 r47745 401 401 { 402 402 RT_ZERO(State); ASMAtomicWriteU32(&State.cShots, State.cShots); 403 int rc = RTTimerStart(pTimer, 0); 404 if (rc == VERR_NOT_SUPPORTED) 405 { 406 RTR0TestR0Info("one-shot timer are not supported, skipping\n"); 407 break; 408 } 409 410 RTR0TESTR0_CHECK_RC_BREAK(rc, VINF_SUCCESS); 403 RTR0TESTR0_CHECK_RC_BREAK(RTTimerStart(pTimer, 0), VINF_SUCCESS); 411 404 for (uint32_t i = 0; i < 1000 && !ASMAtomicUoReadU32(&State.cShots); i++) 412 405 RTThreadSleep(5); -
trunk/src/VBox/Runtime/testcase/tstRTR0TimerDriver.cpp
r32753 r47745 61 61 * Standard timers. 62 62 */ 63 # ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris 63 64 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_BASIC, "Basic one shot"); 65 # endif 64 66 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_BASIC, "Basic periodic"); 65 67 if (RTTestErrorCount(g_hTest) == 0) 66 68 { 67 69 # if 1 70 # ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris 68 71 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_RESTART, "Restart one shot from callback"); 69 72 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_DESTROY, "Destroy one shot from callback"); 73 # endif 70 74 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_CSSD_LOOPS, "Create-start-stop-destroy loops"); 71 75 for (uint32_t i = 0; i <= 7; i++) 72 76 RTR3TestR0SimpleTestWithArg(TSTRTR0TIMER_PERIODIC_CHANGE_INTERVAL, i, "Change interval from callback, variation %u", i); 73 77 # endif 78 # ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris 74 79 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_SPECIFIC, "One shot cpu specific"); 80 # endif 75 81 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_SPECIFIC, "Periodic cpu specific"); 76 82 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_OMNI, "Periodic omni timer"); … … 82 88 * High resolution timers. 83 89 */ 90 # ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris 84 91 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_BASIC_HIRES, "Basic hires one shot"); 92 # endif 85 93 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_BASIC_HIRES, "Basic hires periodic"); 86 94 if (RTTestErrorCount(g_hTest) == 0) 87 95 { 88 96 # if 1 97 # ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris 89 98 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_RESTART_HIRES, "Restart hires one shot from callback"); 90 99 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_DESTROY_HIRES, "Destroy hires one shot from callback"); 100 # endif 91 101 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_CSSD_LOOPS_HIRES, "Create-start-stop-destroy loops, hires"); 92 102 for (uint32_t i = 0; i <= 7; i++) 93 103 RTR3TestR0SimpleTestWithArg(TSTRTR0TIMER_PERIODIC_CHANGE_INTERVAL, i, "Change interval from callback, hires, variation %u", i); 94 104 # endif 105 # ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris 95 106 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_SPECIFIC_HIRES, "One shot hires cpu specific"); 107 # endif 96 108 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_SPECIFIC_HIRES, "Periodic hires cpu specific"); 97 109 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_OMNI, "Periodic omni hires timer");
Note:
See TracChangeset
for help on using the changeset viewer.