Test Cases for the GTC Verify GetIdleTime Test (Windows Embedded CE 6.0)

1/6/2010

The following table shows the test cases for the GTC Verify GetIdleTime Test.

Test case Description

1

Timer Test Usage Message

Prints out the usage message for the OAL Timer Tests. Tells the user what the tests do and specifies the input if any that the user needs to provide to the tests.

7010

Idle Time While Sleeping

Verifies the GetIdleTime function implementation. The test keeps the system idle by sleeping for random amounts of time. After each sleep cycle, the test verifies that the idle time returned by GetIdleTime shows that the system was idle for most of the time.

The default run time for the test is 10 minutes. You can specify the length of time that it runs by specifying -c "–idleRunTime seconds", where seconds is the run time for the test in seconds.

It is recommended that you run this test on an image built with minimum possible SYSGENs. The more SYSGENs your image has, the more likely this test case will fail. Drivers and applications waking for service will make the system noisy.

The failure of this test indicates that there may be something on the system that is waking it up, or that there is a bug in the implementation of GetIdleTime.

7020

Idle Time While Busy

Verifies the GetIdleTime implementation. The test keeps the system busy in a while loop and calls GetIdleTime at random intervals. It verifies that the idle time returned by GetIdleTime shows that the system has not been idle at all during that time.

The test runs for a default time of 10 minutes. You can specify the length of time that it runs by specifying -c "–idleRunTime seconds", where seconds is the run time for the test in seconds.

See Also

Other Resources

GTC Verify GetIdleTime Test