Changeset 45538 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Apr 14, 2013 1:21:56 AM (12 years ago)
- Location:
- trunk/src/VBox/Runtime/testcase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemption.cpp
r44529 r45538 92 92 } 93 93 94 case TSTR0THREADPREMEPTION_IS_TRUSTY: 95 if (RTThreadPreemptIsPendingTrusty()) 96 RTStrPrintf(pszErr, cchErr, "!Untrusty"); 97 break; 98 94 99 case TSTR0THREADPREMEPTION_IS_PENDING: 95 100 { -
trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemption.h
r44529 r45538 37 37 TSTR0THREADPREMEPTION_SANITY_FAILURE, 38 38 TSTR0THREADPREMEPTION_BASIC, 39 TSTR0THREADPREMEPTION_IS_TRUSTY, 39 40 TSTR0THREADPREMEPTION_IS_PENDING, 40 41 TSTR0THREADPREMEPTION_NESTED -
trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemptionDriver.cpp
r45264 r45538 163 163 164 164 /* 165 * Is it trusty. 166 */ 167 RTTestSub(hTest, "RTThreadPreemptIsPendingTrusty"); 168 Req.Hdr.u32Magic = SUPR0SERVICEREQHDR_MAGIC; 169 Req.Hdr.cbReq = sizeof(Req); 170 Req.szMsg[0] = '\0'; 171 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1, 172 TSTR0THREADPREMEPTION_IS_TRUSTY, 0, &Req.Hdr), VINF_SUCCESS); 173 if (RT_FAILURE(rc)) 174 return RTTestSummaryAndDestroy(hTest); 175 if (Req.szMsg[0] == '!') 176 RTTestIFailed("%s", &Req.szMsg[1]); 177 else if (Req.szMsg[0]) 178 RTTestIPrintf(RTTESTLVL_ALWAYS, "%s", Req.szMsg); 179 180 /* 165 181 * Stay in ring-0 until preemption is pending. 166 182 */
Note:
See TracChangeset
for help on using the changeset viewer.