VirtualBox

Ignore:
Timestamp:
Sep 10, 2021 10:11:03 AM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Also send the test index and test creation time (caller UTC) when starting tests. ​bugref:10008

Location:
trunk/src/VBox/ValidationKit/utils/audio
Files:
2 edited

Legend:

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

    r91190 r91194  
    308308        PAUDIOTESTTONEPARMS const pToneParms = &pTstParms->TestTone;
    309309
     310        pToneParms->Hdr.idxSeq = i;
     311        RTTIMESPEC NowTimeSpec;
     312        RTTimeExplode(&pToneParms->Hdr.tsCreated, RTTimeNow(&NowTimeSpec));
     313
    310314        RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test #%RU32/%RU16: Playing test tone (%RU16Hz, %RU32ms)\n",
    311315                     pTstParms->idxCurrent, i, (uint16_t)pToneParms->dbFreqHz, pToneParms->msDuration);
     
    418422    {
    419423        PAUDIOTESTTONEPARMS const pToneParms = &pTstParms->TestTone;
     424
     425        pToneParms->Hdr.idxSeq = i;
     426        RTTIMESPEC NowTimeSpec;
     427        RTTimeExplode(&pToneParms->Hdr.tsCreated, RTTimeNow(&NowTimeSpec));
    420428
    421429        RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test #%RU32/%RU16: Recording test tone (%RU16Hz, %RU32ms)\n",
  • trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp

    r91186 r91194  
    601601    PAUDIOTESTENV   pTstEnv = pCtx->pTstEnv;
    602602
    603     RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Got request for playing test tone (%RU16Hz, %RU32ms) ...\n",
    604                  (uint16_t)pToneParms->dbFreqHz, pToneParms->msDuration);
     603    RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Got request for playing test tone #%RU32 (%RU16Hz, %RU32ms) ...\n",
     604                 pToneParms->Hdr.idxSeq, (uint16_t)pToneParms->dbFreqHz, pToneParms->msDuration);
     605
     606    char szTimeCreated[RTTIME_STR_LEN];
     607    RTTimeToString(&pToneParms->Hdr.tsCreated, szTimeCreated, sizeof(szTimeCreated));
     608    RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Created (caller UTC): %s\n", szTimeCreated);
    605609
    606610    const PAUDIOTESTSTREAM pTstStream = &pTstEnv->aStreams[0]; /** @todo Make this dynamic. */
     
    645649    PAUDIOTESTENV   pTstEnv = pCtx->pTstEnv;
    646650
    647     RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Got request for recording test tone (%RU32ms) ...\n", pToneParms->msDuration);
     651    RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Got request for recording test tone #%RU32 (%RU32ms) ...\n",
     652                 pToneParms->Hdr.idxSeq, pToneParms->msDuration);
     653
     654    char szTimeCreated[RTTIME_STR_LEN];
     655    RTTimeToString(&pToneParms->Hdr.tsCreated, szTimeCreated, sizeof(szTimeCreated));
     656    RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Created (caller UTC): %s\n", szTimeCreated);
    648657
    649658    const PAUDIOTESTSTREAM pTstStream = &pTstEnv->aStreams[0]; /** @todo Make this dynamic. */
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