Changeset 89840 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Jun 22, 2021 4:09:52 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145297
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTest.cpp
r89839 r89840 1647 1647 if (RT_FAILURE(a_rc)) \ 1648 1648 { \ 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__); \ 1650 1659 AssertRC(rc3); \ 1651 1660 if (!a_pVerJob->fKeepGoing) \ … … 1670 1679 PAUDIOTESTOBJ pObjA; 1671 1680 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); 1673 1682 1674 1683 char szObjB[128]; … … 1676 1685 PAUDIOTESTOBJ pObjB; 1677 1686 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); 1680 1688 AssertReturn(pObjA->enmType == AUDIOTESTOBJTYPE_FILE, VERR_NOT_SUPPORTED); 1681 1689 AssertReturn(pObjB->enmType == AUDIOTESTOBJTYPE_FILE, VERR_NOT_SUPPORTED); … … 1728 1736 */ 1729 1737 rc = audioTestVerifyValue(pVerify, phTest, "error_rc", "0", "Test was reported as failed"); 1730 AssertRCReturn(rc, rc);1738 CHECK_RC_MAYBE_RET(rc, pVerify); 1731 1739 rc = audioTestVerifyValue(pVerify, phTest, "obj_count", NULL, "Object counts don't match"); 1732 AssertRCReturn(rc, rc);1740 CHECK_RC_MAYBE_RET(rc, pVerify); 1733 1741 rc = audioTestVerifyValue(pVerify, phTest, "tone_freq_hz", NULL, "Tone frequency doesn't match"); 1734 AssertRCReturn(rc, rc);1742 CHECK_RC_MAYBE_RET(rc, pVerify); 1735 1743 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); 1737 1745 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); 1739 1747 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); 1741 1749 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); 1743 1751 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); 1745 1753 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); 1747 1755 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); 1749 1757 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); 1751 1759 1752 1760 /* … … 1826 1834 AUDIOTESTTYPE enmTestTypeA; 1827 1835 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"); 1829 1837 1830 1838 AUDIOTESTTYPE enmTestTypeB; 1831 1839 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"); 1833 1841 1834 1842 switch (enmTestTypeA)
Note:
See TracChangeset
for help on using the changeset viewer.