Changeset 92613 in vbox for trunk/src/VBox/HostDrivers/Support/testcase
- Timestamp:
- Nov 26, 2021 9:53:47 PM (3 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support/testcase
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/SUPLoggerCtl.cpp
r82968 r92613 59 59 int main(int argc, char **argv) 60 60 { 61 RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_ SUPLIB);61 RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_TRY_SUPLIB); 62 62 63 63 /* … … 151 151 152 152 /* 153 * Do the requested job.153 * Make sure the support library is initialized. 154 154 */ 155 int rc ;156 switch (enmWhat)155 int rc = SUPR3Init(NULL /*ppSession*/); 156 if (RT_SUCCESS(rc)) 157 157 { 158 case kSupLoggerCtl_Set: 159 rc = SUPR3LoggerSettings(enmWhich, pszFlags, pszGroups, pszDest); 160 break; 161 case kSupLoggerCtl_Create: 162 rc = SUPR3LoggerCreate(enmWhich, pszFlags, pszGroups, pszDest); 163 break; 164 case kSupLoggerCtl_Destroy: 165 rc = SUPR3LoggerDestroy(enmWhich); 166 break; 167 default: 168 rc = VERR_INTERNAL_ERROR; 169 break; 158 /* 159 * Do the requested job. 160 */ 161 switch (enmWhat) 162 { 163 case kSupLoggerCtl_Set: 164 rc = SUPR3LoggerSettings(enmWhich, pszFlags, pszGroups, pszDest); 165 break; 166 case kSupLoggerCtl_Create: 167 rc = SUPR3LoggerCreate(enmWhich, pszFlags, pszGroups, pszDest); 168 break; 169 case kSupLoggerCtl_Destroy: 170 rc = SUPR3LoggerDestroy(enmWhich); 171 break; 172 default: 173 rc = VERR_INTERNAL_ERROR; 174 break; 175 } 176 if (RT_SUCCESS(rc)) 177 RTPrintf("SUPLoggerCtl: Success\n"); 178 else 179 RTStrmPrintf(g_pStdErr, "SUPLoggerCtl: error: rc=%Rrc\n", rc); 170 180 } 171 if (RT_SUCCESS(rc))172 RTPrintf("SUPLoggerCtl: Success\n");173 181 else 174 RTStrmPrintf(g_pStdErr, "SUP LoggerCtl: error: rc=%Rrc\n", rc);182 RTStrmPrintf(g_pStdErr, "SUPR3Init: error: rc=%Rrc\n", rc); 175 183 176 184 return RT_SUCCESS(rc) ? 0 : 1; -
trunk/src/VBox/HostDrivers/Support/testcase/tstPage.cpp
r92556 r92613 40 40 int cErrors = 0; 41 41 42 RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_ SUPLIB);42 RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_TRY_SUPLIB); 43 43 int rc = SUPR3Init(NULL); 44 44 cErrors += rc != 0; -
trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp
r92556 r92613 46 46 RTHCPHYS HCPhys; 47 47 48 RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_ SUPLIB);48 RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_TRY_SUPLIB); 49 49 rc = SUPR3Init(NULL); 50 50 RTPrintf("SUPR3Init -> rc=%d\n", rc); -
trunk/src/VBox/HostDrivers/Support/testcase/tstSupSem-Zombie.cpp
r86397 r92613 95 95 * Init. 96 96 */ 97 int rc = RTR3InitExeNoArguments(RTR3INIT_FLAGS_ SUPLIB);97 int rc = RTR3InitExeNoArguments(RTR3INIT_FLAGS_TRY_SUPLIB); 98 98 if (RT_FAILURE(rc)) 99 99 { -
trunk/src/VBox/HostDrivers/Support/testcase/tstSupSem.cpp
r82968 r92613 80 80 * Init. 81 81 */ 82 int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_ SUPLIB);82 int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_TRY_SUPLIB); 83 83 if (RT_FAILURE(rc)) 84 84 return RTMsgInitFailure(rc);
Note:
See TracChangeset
for help on using the changeset viewer.