Changeset 89889 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 24, 2021 1:11:47 PM (3 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTest.cpp
r89842 r89889 1217 1217 1218 1218 memcpy(&pEntry->Parms, pParms, sizeof(AUDIOTESTPARMS)); 1219 1219 1220 pEntry->pParent = pSet; 1221 pEntry->rc = VERR_IPE_UNINITIALIZED_STATUS; 1220 1222 1221 1223 rc = audioTestManifestWrite(pSet, "\n"); … … 1272 1274 1273 1275 RTListAppend(&pSet->lstTest, &pEntry->Node); 1276 1274 1277 pSet->cTests++; 1275 1278 pSet->cTestsRunning++; … … 1291 1294 int AudioTestSetTestFailed(PAUDIOTESTENTRY pEntry, int rc, const char *pszErr) 1292 1295 { 1293 AssertReturn(pEntry->pParent->cTestsRunning == 1, VERR_WRONG_ORDER); /* No test nesting allowed. */1294 AssertReturn(pEntry->rc == V INF_SUCCESS, VERR_WRONG_ORDER);1296 AssertReturn(pEntry->pParent->cTestsRunning == 1, VERR_WRONG_ORDER); /* No test nesting allowed. */ 1297 AssertReturn(pEntry->rc == VERR_IPE_UNINITIALIZED_STATUS, VERR_WRONG_ORDER); 1295 1298 1296 1299 pEntry->rc = rc; … … 1315 1318 int AudioTestSetTestDone(PAUDIOTESTENTRY pEntry) 1316 1319 { 1317 AssertReturn(pEntry->pParent->cTestsRunning == 1, VERR_WRONG_ORDER); /* No test nesting allowed. */ 1318 AssertReturn(pEntry->rc == VINF_SUCCESS, VERR_WRONG_ORDER); 1320 AssertReturn(pEntry->pParent->cTestsRunning == 1, VERR_WRONG_ORDER); /* No test nesting allowed. */ 1321 AssertReturn(pEntry->rc == VERR_IPE_UNINITIALIZED_STATUS, VERR_WRONG_ORDER); 1322 1323 pEntry->rc = VINF_SUCCESS; 1319 1324 1320 1325 int rc2 = audioTestManifestWrite(pEntry->pParent, "error_rc=%RI32\n", VINF_SUCCESS); … … 1325 1330 1326 1331 return rc2; 1332 } 1333 1334 /** 1335 * Returns whether a test is still running or not. 1336 * 1337 * @returns \c true if test is still running, or \c false if not. 1338 * @param pEntry Test to get running status for. 1339 */ 1340 bool AudioTestSetTestIsRunning(PAUDIOTESTENTRY pEntry) 1341 { 1342 return (pEntry->rc == VERR_IPE_UNINITIALIZED_STATUS); 1327 1343 } 1328 1344 -
trunk/src/VBox/Devices/Audio/AudioTest.h
r89747 r89889 358 358 int AudioTestSetTestFailed(PAUDIOTESTENTRY pEntry, int rc, const char *pszErr); 359 359 int AudioTestSetTestDone(PAUDIOTESTENTRY pEntry); 360 bool AudioTestSetTestIsRunning(PAUDIOTESTENTRY pEntry); 360 361 361 362 int AudioTestSetCreate(PAUDIOTESTSET pSet, const char *pszPath, const char *pszTag);
Note:
See TracChangeset
for help on using the changeset viewer.