VirtualBox

Changeset 47745 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Aug 15, 2013 7:24:10 AM (11 years ago)
Author:
vboxsync
Message:

tstRTR0Timer: mask out one-shot drivers from Solaris (currently not supported)

Location:
trunk/src/VBox/Runtime/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTR0Timer.cpp

    r47642 r47745  
    401401            {
    402402                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);
    411404                for (uint32_t i = 0; i < 1000 && !ASMAtomicUoReadU32(&State.cShots); i++)
    412405                    RTThreadSleep(5);
  • trunk/src/VBox/Runtime/testcase/tstRTR0TimerDriver.cpp

    r32753 r47745  
    6161     * Standard timers.
    6262     */
     63#  ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris
    6364    RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_BASIC,       "Basic one shot");
     65#  endif
    6466    RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_BASIC,       "Basic periodic");
    6567    if (RTTestErrorCount(g_hTest) == 0)
    6668    {
    6769#  if 1
     70#   ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris
    6871        RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_RESTART, "Restart one shot from callback");
    6972        RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_DESTROY, "Destroy one shot from callback");
     73#   endif
    7074        RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_CSSD_LOOPS, "Create-start-stop-destroy loops");
    7175        for (uint32_t i = 0; i <= 7; i++)
    7276            RTR3TestR0SimpleTestWithArg(TSTRTR0TIMER_PERIODIC_CHANGE_INTERVAL, i, "Change interval from callback, variation %u", i);
    7377#  endif
     78#   ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris
    7479        RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_SPECIFIC, "One shot cpu specific");
     80#   endif
    7581        RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_SPECIFIC, "Periodic cpu specific");
    7682        RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_OMNI, "Periodic omni timer");
     
    8288     * High resolution timers.
    8389     */
     90#  ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris
    8491    RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_BASIC_HIRES, "Basic hires one shot");
     92#  endif
    8593    RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_BASIC_HIRES, "Basic hires periodic");
    8694    if (RTTestErrorCount(g_hTest) == 0)
    8795    {
    8896#  if 1
     97#   ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris
    8998        RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_RESTART_HIRES, "Restart hires one shot from callback");
    9099        RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_DESTROY_HIRES, "Destroy hires one shot from callback");
     100#   endif
    91101        RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_CSSD_LOOPS_HIRES, "Create-start-stop-destroy loops, hires");
    92102        for (uint32_t i = 0; i <= 7; i++)
    93103            RTR3TestR0SimpleTestWithArg(TSTRTR0TIMER_PERIODIC_CHANGE_INTERVAL, i, "Change interval from callback, hires, variation %u", i);
    94104#  endif
     105#   ifndef RT_OS_SOLARIS // one-shot timers currently not supported on Solaris
    95106        RTR3TestR0SimpleTest(TSTRTR0TIMER_ONE_SHOT_SPECIFIC_HIRES, "One shot hires cpu specific");
     107#   endif
    96108        RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_SPECIFIC_HIRES, "Periodic hires cpu specific");
    97109        RTR3TestR0SimpleTest(TSTRTR0TIMER_PERIODIC_OMNI, "Periodic omni hires timer");
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette