Changeset 32753 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Sep 24, 2010 9:57:49 AM (14 years ago)
- Location:
- trunk/src/VBox/Runtime/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTR0Timer.cpp
r32749 r32753 182 182 pState->aShotNsTSes[iShot] = RTTimeSystemNanoTS(); 183 183 if (pState->fPeriodic) 184 RTR0TESTR0_CHECK_MSG(iShot == iTick, ("iShot=%u iTick=%u\n", iShot, iTick));184 RTR0TESTR0_CHECK_MSG(iShot + 1 == iTick, ("iShot=%u iTick=%u\n", iShot, iTick)); 185 185 else 186 186 RTR0TESTR0_CHECK_MSG(iTick == 1, ("iShot=%u iTick=%u\n", iShot, iTick)); … … 716 716 /* reset the state */ 717 717 for (uint32_t iCpu = 0; iCpu < RTCPUSET_MAX_CPUS; iCpu++) 718 { 719 paStates[iCpu].u64Start = 0; 720 paStates[iCpu].u64Last = 0; 718 721 ASMAtomicWriteU32(&paStates[iCpu].cTicks, 0); 722 } 719 723 720 724 /* run it for 1 second. */ … … 757 761 RTR0TESTR0_CHECK_MSG(RTCpuSetIsMemberByIndex(&OnlineSet, iCpu), ("%d\n", iCpu)); 758 762 RTR0TESTR0_CHECK_MSG(paStates[iCpu].cTicks <= cMaxTicks && paStates[iCpu].cTicks >= cMinTicks, 759 ("min=%u, ticks=%u, avg=%u max=%u, iCpu=%u, interval=%'u, elapsed=%' u/%'u\n",763 ("min=%u, ticks=%u, avg=%u max=%u, iCpu=%u, interval=%'u, elapsed=%'llu/%'llu\n", 760 764 cMinTicks, paStates[iCpu].cTicks, cAvgTicks, cMaxTicks, iCpu, 761 765 cNsInterval, cNsElapsed, cNsElapsedX)); -
trunk/src/VBox/Runtime/testcase/tstRTR0TimerDriver.cpp
r32736 r32753 65 65 if (RTTestErrorCount(g_hTest) == 0) 66 66 { 67 # if 067 # if 1 68 68 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_RESTART, "Restart one shot from callback"); 69 69 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_DESTROY, "Destroy one shot from callback"); … … 74 74 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_SPECIFIC, "One shot cpu specific"); 75 75 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_SPECIFIC, "Periodic cpu specific"); 76 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_OMNI, "Periodic omni timer"); 76 77 } 77 78 # endif … … 85 86 if (RTTestErrorCount(g_hTest) == 0) 86 87 { 87 # if 088 # if 1 88 89 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_RESTART_HIRES, "Restart hires one shot from callback"); 89 90 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_DESTROY_HIRES, "Destroy hires one shot from callback"); … … 94 95 RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_SPECIFIC_HIRES, "One shot hires cpu specific"); 95 96 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_SPECIFIC_HIRES, "Periodic hires cpu specific"); 97 RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_OMNI, "Periodic omni hires timer"); 96 98 } 97 99 # endif
Note:
See TracChangeset
for help on using the changeset viewer.