VirtualBox

Changeset 89840 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Jun 22, 2021 4:09:52 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145297
Message:

Audio/ValKit: More work on logging [Windows build fix]. bugref:10008

File:
1 edited

Legend:

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

    r89839 r89840  
    16471647    if (RT_FAILURE(a_rc)) \
    16481648    { \
    1649         int rc3 = audioTestErrorDescAdd(a_pVerJob->pErr, a_pVerJob->idxTest, (a_Msg)); \
     1649        int rc3 = audioTestErrorDescAdd(a_pVerJob->pErr, a_pVerJob->idxTest, a_Msg); \
     1650        AssertRC(rc3); \
     1651        if (!a_pVerJob->fKeepGoing) \
     1652            return VINF_SUCCESS; \
     1653    }
     1654
     1655#define CHECK_RC_MSG_VA_MAYBE_RET(a_rc, a_pVerJob, a_Msg, ...) \
     1656    if (RT_FAILURE(a_rc)) \
     1657    { \
     1658        int rc3 = audioTestErrorDescAdd(a_pVerJob->pErr, a_pVerJob->idxTest, a_Msg, __VA_ARGS__); \
    16501659        AssertRC(rc3); \
    16511660        if (!a_pVerJob->fKeepGoing) \
     
    16701679    PAUDIOTESTOBJ pObjA;
    16711680    rc = audioTestSetObjOpen(pVerJob->pSetA, szObjA, &pObjA);
    1672     CHECK_RC_MSG_MAYBE_RET(rc, pVerJob, ("Unable to open object A '%s'", szObjA));
     1681    CHECK_RC_MSG_VA_MAYBE_RET(rc, pVerJob, "Unable to open object A '%s'", szObjA);
    16731682
    16741683    char szObjB[128];
     
    16761685    PAUDIOTESTOBJ pObjB;
    16771686    rc = audioTestSetObjOpen(pVerJob->pSetB, szObjB, &pObjB);
    1678     CHECK_RC_MSG_MAYBE_RET(rc, pVerJob, ("Unable to open object B '%s'", szObjB));
    1679 
     1687    CHECK_RC_MSG_VA_MAYBE_RET(rc, pVerJob, "Unable to open object B '%s'", szObjB);
    16801688    AssertReturn(pObjA->enmType == AUDIOTESTOBJTYPE_FILE, VERR_NOT_SUPPORTED);
    16811689    AssertReturn(pObjB->enmType == AUDIOTESTOBJTYPE_FILE, VERR_NOT_SUPPORTED);
     
    17281736     */
    17291737    rc = audioTestVerifyValue(pVerify, phTest, "error_rc", "0", "Test was reported as failed");
    1730     AssertRCReturn(rc, rc);
     1738    CHECK_RC_MAYBE_RET(rc, pVerify);
    17311739    rc = audioTestVerifyValue(pVerify, phTest, "obj_count", NULL, "Object counts don't match");
    1732     AssertRCReturn(rc, rc);
     1740    CHECK_RC_MAYBE_RET(rc, pVerify);
    17331741    rc = audioTestVerifyValue(pVerify, phTest, "tone_freq_hz", NULL, "Tone frequency doesn't match");
    1734     AssertRCReturn(rc, rc);
     1742    CHECK_RC_MAYBE_RET(rc, pVerify);
    17351743    rc = audioTestVerifyValue(pVerify, phTest, "tone_prequel_ms", NULL, "Tone prequel (ms) doesn't match");
    1736     AssertRCReturn(rc, rc);
     1744    CHECK_RC_MAYBE_RET(rc, pVerify);
    17371745    rc = audioTestVerifyValue(pVerify, phTest, "tone_duration_ms", NULL, "Tone duration (ms) doesn't match");
    1738     AssertRCReturn(rc, rc);
     1746    CHECK_RC_MAYBE_RET(rc, pVerify);
    17391747    rc = audioTestVerifyValue(pVerify, phTest, "tone_sequel_ms", NULL, "Tone sequel (ms) doesn't match");
    1740     AssertRCReturn(rc, rc);
     1748    CHECK_RC_MAYBE_RET(rc, pVerify);
    17411749    rc = audioTestVerifyValue(pVerify, phTest, "tone_volume_percent", NULL, "Tone volume (percent) doesn't match");
    1742     AssertRCReturn(rc, rc);
     1750    CHECK_RC_MAYBE_RET(rc, pVerify);
    17431751    rc = audioTestVerifyValue(pVerify, phTest, "tone_pcm_hz", NULL, "Tone PCM Hz doesn't match");
    1744     AssertRCReturn(rc, rc);
     1752    CHECK_RC_MAYBE_RET(rc, pVerify);
    17451753    rc = audioTestVerifyValue(pVerify, phTest, "tone_pcm_channels", NULL, "Tone PCM channels don't match");
    1746     AssertRCReturn(rc, rc);
     1754    CHECK_RC_MAYBE_RET(rc, pVerify);
    17471755    rc = audioTestVerifyValue(pVerify, phTest, "tone_pcm_bits", NULL, "Tone PCM bits don't match");
    1748     AssertRCReturn(rc, rc);
     1756    CHECK_RC_MAYBE_RET(rc, pVerify);
    17491757    rc = audioTestVerifyValue(pVerify, phTest, "tone_pcm_is_signed", NULL, "Tone PCM signed bit doesn't match");
    1750     AssertRCReturn(rc, rc);
     1758    CHECK_RC_MAYBE_RET(rc, pVerify);
    17511759
    17521760    /*
     
    18261834        AUDIOTESTTYPE enmTestTypeA;
    18271835        rc = audioTestGetValueUInt32(VerJob.pSetA, &hTest, "test_type", (uint32_t *)&enmTestTypeA);
    1828         CHECK_RC_MSG_MAYBE_RET(rc, pVerJob, ("Test type A not found"));
     1836        CHECK_RC_MSG_MAYBE_RET(rc, pVerJob, "Test type A not found");
    18291837
    18301838        AUDIOTESTTYPE enmTestTypeB;
    18311839        rc = audioTestGetValueUInt32(VerJob.pSetB, &hTest, "test_type", (uint32_t *)&enmTestTypeB);
    1832         CHECK_RC_MSG_MAYBE_RET(rc, pVerJob, ("Test type B not found"));
     1840        CHECK_RC_MSG_MAYBE_RET(rc, pVerJob, "Test type B not found %RU32");
    18331841
    18341842        switch (enmTestTypeA)
Note: See TracChangeset for help on using the changeset viewer.

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