Changeset 103285 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Feb 8, 2024 3:27:12 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstInt.cpp
r103275 r103285 62 62 int rcRet = 0; 63 63 int i; 64 int rc;65 64 int cIterations = argc > 1 ? RTStrToUInt32(argv[1]) : 32; 66 65 if (cIterations == 0) … … 72 71 RTR3InitExe(argc, &argv, 0); 73 72 PSUPDRVSESSION pSession; 74 rc = SUPR3Init(&pSession);73 int rc = SUPR3Init(&pSession); 75 74 rcRet += rc != 0; 76 75 RTPrintf("tstInt: SUPR3Init -> rc=%Rrc\n", rc); 77 76 char szFile[RTPATH_MAX]; 78 if (!rc) 79 { 80 rc = RTPathExecDir(szFile, sizeof(szFile) - sizeof("/VMMR0.r0")); 81 } 77 if (RT_SUCCESS(rc)) 78 rc = RTPathExecDir(szFile, sizeof(szFile)); 79 82 80 char szAbsFile[RTPATH_MAX]; 83 81 if (RT_SUCCESS(rc)) 84 82 { 85 strcat(szFile, "/VMMR0.r0"); 86 rc = RTPathAbs(szFile, szAbsFile, sizeof(szAbsFile)); 83 rc = RTPathAppend(szFile, sizeof(szFile), "VMMR0.r0"); 84 if (RT_SUCCESS(rc)) 85 rc = RTPathAbs(szFile, szAbsFile, sizeof(szAbsFile)); 87 86 } 88 87 if (RT_SUCCESS(rc)) … … 236 235 } 237 236 237 if (RT_FAILURE(rc)) 238 RTPrintf("Failed with rc=%Rrc\n", rc); 239 238 240 return !!rc; 239 241 }
Note:
See TracChangeset
for help on using the changeset viewer.