VirtualBox

Ignore:
Timestamp:
Aug 18, 2021 1:51:17 PM (3 years ago)
Author:
vboxsync
Message:

Audio/VKAT: A bit more error logging; useful for the test boxes. ​bugref:10008

File:
1 edited

Legend:

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

    r90704 r90718  
    296296         * 1. Arm the (host) ValKit ATS with the recording parameters.
    297297         */
     298        RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Telling ValKit audio driver on host to record new tone ...\n");
    298299        rc = AudioTestSvcClientToneRecord(&pTstEnv->u.Host.AtsClValKit, pToneParms);
    299300        if (RT_SUCCESS(rc))
     
    302303             * 2. Tell the guest ATS to start playback.
    303304             */
     305            RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Telling guest VKAT to play tone ...\n");
    304306            rc = AudioTestSvcClientTonePlay(&pTstEnv->u.Host.AtsClGuest, pToneParms);
    305307            if (RT_FAILURE(rc))
     
    313315        if (RT_SUCCESS(rc))
    314316        {
     317            RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Playing tone done\n");
     318
    315319            /* Give the audio stack a random amount of time for draining data before the next iteration. */
    316320            if (pTstParms->cIterations > 1)
     
    543547        rc = AudioTestSvcClientTestSetBegin(&pTstEnv->u.Host.AtsClValKit, pTstEnv->szTag);
    544548        if (RT_SUCCESS(rc))
     549        {
    545550            rc = AudioTestSvcClientTestSetBegin(&pTstEnv->u.Host.AtsClGuest, pTstEnv->szTag);
     551            if (RT_FAILURE(rc))
     552                RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS,
     553                             "Beginning test set on guest failed with %Rrc\n", rc);
     554        }
     555        else
     556            RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS,
     557                         "Beginning test set on host (Validation Kit audio driver) failed with %Rrc\n", rc);
    546558
    547559        if (RT_SUCCESS(rc))
     
    562574
    563575            int rc2 = AudioTestSvcClientTestSetEnd(&pTstEnv->u.Host.AtsClGuest, pTstEnv->szTag);
    564             if (RT_SUCCESS(rc))
    565                 rc = rc2;
     576            if (RT_FAILURE(rc2))
     577            {
     578                RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Ending test set on guest failed with %Rrc\n", rc2);
     579                if (RT_SUCCESS(rc))
     580                    rc = rc2;
     581            }
    566582
    567583            rc2 = AudioTestSvcClientTestSetEnd(&pTstEnv->u.Host.AtsClValKit, pTstEnv->szTag);
    568             if (RT_SUCCESS(rc))
    569                 rc = rc2;
     584            if (RT_FAILURE(rc2))
     585            {
     586                RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS,
     587                             "Ending test set on host (Validation Kit audio driver) failed with %Rrc\n", rc2);
     588                if (RT_SUCCESS(rc))
     589                    rc = rc2;
     590            }
    570591
    571592            if (   !g_fTerminate
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