VirtualBox

Ignore:
Timestamp:
Aug 4, 2021 8:20:39 AM (3 years ago)
Author:
vboxsync
Message:

Audio/ValKit: More error logging for VKAT. ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp

    r90506 r90507  
    303303             */
    304304            rc = AudioTestSvcClientTonePlay(&pTstEnv->u.Host.AtsClGuest, pToneParms);
    305         }
     305            if (RT_FAILURE(rc))
     306                RTTestFailed(g_hTest, "Test #%RU32/%RU16: AudioTestSvcClientTonePlay() failed with %Rrc\n",
     307                             pTstParms->idxCurrent, i, rc);
     308        }
     309        else
     310            RTTestFailed(g_hTest, "Test #%RU32/%RU16: AudioTestSvcClientToneRecord() failed with %Rrc\n",
     311                         pTstParms->idxCurrent, i, rc);
    306312
    307313        if (RT_SUCCESS(rc))
     
    310316                RTThreadSleep(RTRandU32Ex(2000, 5000));
    311317        }
    312         else
    313             RTTestFailed(g_hTest, "Test #%RU32/%RU16: Playing tone failed\n", pTstParms->idxCurrent, i);
     318
     319        if (RT_FAILURE(rc))
     320            RTTestFailed(g_hTest, "Test #%RU32/%RU16: Playing test tone failed with %Rrc\n", pTstParms->idxCurrent, i, rc);
    314321    }
    315322
     
    396403             */
    397404            rc = AudioTestSvcClientToneRecord(&pTstEnv->u.Host.AtsClGuest, &pTstParms->TestTone);
    398         }
    399 
    400         if (RT_FAILURE(rc))
    401             RTTestFailed(g_hTest, "Test #%RU32/%RU16: Recording tone failed\n", pTstParms->idxCurrent, i);
     405            if (RT_FAILURE(rc))
     406                RTTestFailed(g_hTest, "Test #%RU32/%RU16: AudioTestSvcClientToneRecord() failed with %Rrc\n",
     407                             pTstParms->idxCurrent, i, rc);
     408        }
     409        else
     410            RTTestFailed(g_hTest, "Test #%RU32/%RU16: AudioTestSvcClientTonePlay() failed with %Rrc\n",
     411                         pTstParms->idxCurrent, i, rc);
    402412
    403413        /* Wait a bit to let the left over audio bits being processed. */
    404414        if (pTstParms->cIterations)
    405415            RTThreadSleep(RTRandU32Ex(2000, 5000));
     416
     417        if (RT_FAILURE(rc))
     418            RTTestFailed(g_hTest, "Test #%RU32/%RU16: Recording test tone failed with %Rrc\n", pTstParms->idxCurrent, i, rc);
    406419    }
    407420
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