VirtualBox

Changeset 90765 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 20, 2021 5:00:41 PM (3 years ago)
Author:
vboxsync
Message:

Audio/ValKit: Don't report back ATS starting errors to PDM, as those are not critical (enough) to prevent VBox from starting. bugref:10008

File:
1 edited

Legend:

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

    r90183 r90765  
    11061106            pszTcpAddr, uTcpPort));
    11071107
    1108     rc = AudioTestSvcCreate(&pThis->Srv);
    1109     if (RT_SUCCESS(rc))
     1108    /* Dont' use rc here, as this will be reported back to PDM and will prevent VBox
     1109     * from starting -- not critical but warn the user though. */
     1110    int rc2 = AudioTestSvcCreate(&pThis->Srv);
     1111    if (RT_SUCCESS(rc2))
    11101112    {
    11111113        RTGETOPTUNION Val;
     
    11131115
    11141116        Val.psz = "server"; /** @ŧodo No client connection mode needed here (yet). Make this configurable via CFGM. */
    1115         rc = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_MODE, &Val);
    1116         AssertRC(rc);
     1117        rc2 = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_MODE, &Val);
     1118        AssertRC(rc2);
    11171119
    11181120        Val.psz = pszTcpAddr;
    1119         rc = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_BIND_ADDRESS, &Val);
    1120         AssertRC(rc);
     1121        rc2 = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_BIND_ADDRESS, &Val);
     1122        AssertRC(rc2);
    11211123
    11221124        Val.u16 = uTcpPort;
    1123         rc = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_BIND_PORT, &Val);
    1124         AssertRC(rc);
    1125 
    1126         rc = AudioTestSvcInit(&pThis->Srv, &Callbacks);
    1127         if (RT_SUCCESS(rc))
    1128             rc = AudioTestSvcStart(&pThis->Srv);
    1129     }
    1130 
    1131     if (RT_SUCCESS(rc))
     1125        rc2 = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_BIND_PORT, &Val);
     1126        AssertRC(rc2);
     1127
     1128        rc2 = AudioTestSvcInit(&pThis->Srv, &Callbacks);
     1129        if (RT_SUCCESS(rc2))
     1130            rc2 = AudioTestSvcStart(&pThis->Srv);
     1131    }
     1132
     1133    if (RT_SUCCESS(rc2))
    11321134    {
    11331135        LogRel(("ValKit: Audio Test Service (ATS) running\n"));
    11341136
    11351137        /** @todo Let the following be customizable by CFGM later. */
    1136         rc = AudioTestPathCreateTemp(pThis->szPathTemp, sizeof(pThis->szPathTemp), "ValKitAudio");
    1137         if (RT_SUCCESS(rc))
     1138        rc2 = AudioTestPathCreateTemp(pThis->szPathTemp, sizeof(pThis->szPathTemp), "ValKitAudio");
     1139        if (RT_SUCCESS(rc2))
    11381140        {
    11391141            LogRel(("ValKit: Using temp dir '%s'\n", pThis->szPathTemp));
    1140             rc = AudioTestPathGetTemp(pThis->szPathOut, sizeof(pThis->szPathOut));
    1141             if (RT_SUCCESS(rc))
     1142            rc2 = AudioTestPathGetTemp(pThis->szPathOut, sizeof(pThis->szPathOut));
     1143            if (RT_SUCCESS(rc2))
    11421144                LogRel(("ValKit: Using output dir '%s'\n", pThis->szPathOut));
    11431145        }
    11441146    }
    11451147
    1146     if (RT_FAILURE(rc))
     1148    if (RT_FAILURE(rc2))
     1149        LogRel(("ValKit: Error starting Audio Test Service (ATS), rc=%Rrc -- tests *will* fail!\n", rc2));
     1150
     1151    if (RT_FAILURE(rc)) /* This one *is* critical though. */
    11471152        LogRel(("ValKit: Initialization failed, rc=%Rrc\n", rc));
    11481153
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