VirtualBox

Changeset 92260 in vbox


Ignore:
Timestamp:
Nov 8, 2021 10:15:59 AM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Make sure that test set to end matches the test set we actually began. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp

    r92234 r92260  
    402402        const PAUDIOTESTSET pSet = &pThis->Set;
    403403
     404        const char *pszTagSet = AudioTestSetGetTag(pSet);
     405        if (RTStrCmp(pszTagSet, pszTag) != 0)
     406        {
     407            LogRel(("ValKit: Error: Current test does not match test set to end ('%s' vs '%s')\n", pszTagSet, pszTag));
     408
     409            int rc2 = RTCritSectLeave(&pThis->CritSect);
     410            AssertRC(rc2);
     411
     412            return VERR_NOT_FOUND; /* Return to the caller. */
     413        }
     414
    404415        LogRel(("ValKit: Test set has %RU32 tests total, %RU32 (still) running, %RU32 failures total so far\n",
    405416                AudioTestSetGetTestsTotal(pSet), AudioTestSetGetTestsRunning(pSet), AudioTestSetGetTotalFailures(pSet)));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette