Changeset 54449 in vbox for trunk/src/VBox/Runtime/testcase/tstRTR0ThreadPreemptionDriver.cpp
- Timestamp:
- Feb 24, 2015 2:54:42 PM (10 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTR0ThreadPreemptionDriver.cpp
r54436 r54449 5 5 6 6 /* 7 * Copyright (C) 2009-201 3Oracle Corporation7 * Copyright (C) 2009-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 42 42 #ifdef VBOX 43 43 # include <VBox/sup.h> 44 # include "tstR 0ThreadPreemption.h"44 # include "tstRTR0ThreadPreemption.h" 45 45 #endif 46 46 … … 88 88 */ 89 89 RTTEST hTest; 90 int rc = RTTestInitAndCreate("tstR 0ThreadPreemption", &hTest);90 int rc = RTTestInitAndCreate("tstRTR0ThreadPreemption", &hTest); 91 91 if (rc) 92 92 return rc; … … 104 104 rc = RTPathExecDir(szPath, sizeof(szPath)); 105 105 if (RT_SUCCESS(rc)) 106 rc = RTPathAppend(szPath, sizeof(szPath), "tstR 0ThreadPreemption.r0");106 rc = RTPathAppend(szPath, sizeof(szPath), "tstRTR0ThreadPreemption.r0"); 107 107 if (RT_FAILURE(rc)) 108 108 { … … 112 112 113 113 void *pvImageBase; 114 rc = SUPR3LoadServiceModule(szPath, "tstR 0ThreadPreemption",115 "TSTR 0ThreadPreemptionSrvReqHandler",114 rc = SUPR3LoadServiceModule(szPath, "tstRTR0ThreadPreemption", 115 "TSTRTR0ThreadPreemptionSrvReqHandler", 116 116 &pvImageBase); 117 117 if (RT_FAILURE(rc)) … … 135 135 Req.Hdr.cbReq = sizeof(Req); 136 136 Req.szMsg[0] = '\0'; 137 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR 0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,138 TSTR 0THREADPREMEPTION_SANITY_OK, 0, &Req.Hdr), VINF_SUCCESS);137 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1, 138 TSTRTR0THREADPREEMPTION_SANITY_OK, 0, &Req.Hdr), VINF_SUCCESS); 139 139 if (RT_FAILURE(rc)) 140 140 return RTTestSummaryAndDestroy(hTest); … … 146 146 Req.Hdr.cbReq = sizeof(Req); 147 147 Req.szMsg[0] = '\0'; 148 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR 0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,149 TSTR 0THREADPREMEPTION_SANITY_FAILURE, 0, &Req.Hdr), VINF_SUCCESS);148 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1, 149 TSTRTR0THREADPREEMPTION_SANITY_FAILURE, 0, &Req.Hdr), VINF_SUCCESS); 150 150 if (RT_FAILURE(rc)) 151 151 return RTTestSummaryAndDestroy(hTest); … … 161 161 Req.Hdr.cbReq = sizeof(Req); 162 162 Req.szMsg[0] = '\0'; 163 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR 0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,164 TSTR 0THREADPREMEPTION_BASIC, 0, &Req.Hdr), VINF_SUCCESS);163 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1, 164 TSTRTR0THREADPREEMPTION_BASIC, 0, &Req.Hdr), VINF_SUCCESS); 165 165 if (RT_FAILURE(rc)) 166 166 return RTTestSummaryAndDestroy(hTest); … … 180 180 Req.Hdr.cbReq = sizeof(Req); 181 181 Req.szMsg[0] = '\0'; 182 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR 0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,183 TSTR 0THREADPREMEPTION_IS_TRUSTY, 0, &Req.Hdr), VINF_SUCCESS);182 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1, 183 TSTRTR0THREADPREEMPTION_IS_TRUSTY, 0, &Req.Hdr), VINF_SUCCESS); 184 184 if (RT_FAILURE(rc)) 185 185 return RTTestSummaryAndDestroy(hTest); … … 212 212 Req.Hdr.cbReq = sizeof(Req); 213 213 Req.szMsg[0] = '\0'; 214 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR 0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,215 TSTR 0THREADPREMEPTION_IS_PENDING, 0, &Req.Hdr), VINF_SUCCESS);214 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1, 215 TSTRTR0THREADPREEMPTION_IS_PENDING, 0, &Req.Hdr), VINF_SUCCESS); 216 216 if ( strcmp(Req.szMsg, "!cLoops=1\n") 217 217 || i >= 64) … … 241 241 Req.Hdr.cbReq = sizeof(Req); 242 242 Req.szMsg[0] = '\0'; 243 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR 0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,244 TSTR 0THREADPREMEPTION_NESTED, 0, &Req.Hdr), VINF_SUCCESS);243 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1, 244 TSTRTR0THREADPREEMPTION_NESTED, 0, &Req.Hdr), VINF_SUCCESS); 245 245 if (Req.szMsg[0] == '!') 246 246 RTTestIFailed("%s", &Req.szMsg[1]); … … 261 261 Req.Hdr.cbReq = sizeof(Req); 262 262 Req.szMsg[0] = '\0'; 263 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstR 0ThreadPreemption", sizeof("tstR0ThreadPreemption") - 1,264 TSTR 0THREADPREEMPTION_CTXHOOKS, 0, &Req.Hdr), VINF_SUCCESS);263 RTTESTI_CHECK_RC(rc = SUPR3CallR0Service("tstRTR0ThreadPreemption", sizeof("tstRTR0ThreadPreemption") - 1, 264 TSTRTR0THREADPREEMPTION_CTXHOOKS, 0, &Req.Hdr), VINF_SUCCESS); 265 265 if (RT_FAILURE(rc)) 266 266 return RTTestSummaryAndDestroy(hTest);
Note:
See TracChangeset
for help on using the changeset viewer.