VirtualBox

Ignore:
Timestamp:
Jun 30, 2021 8:24:52 AM (3 years ago)
Author:
vboxsync
Message:

Audio/ValKit: Be less strict when (binary) comparing test set audio data (comparison needs to be refined first). bugref:10008

File:
1 edited

Legend:

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

    r89964 r89966  
    879879            if (RT_SUCCESS(rc))
    880880            {
    881                 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "%RU32 errors occurred while verifying\n", AudioTestErrorDescCount(&errDesc));
    882                 if (AudioTestErrorDescFailed(&errDesc))
     881                uint32_t const cErr = AudioTestErrorDescCount(&errDesc);
     882                RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "%RU32 errors occurred while verifying\n", cErr);
     883
     884                /** @todo Use some AudioTestErrorXXX API for enumeration here later. */
     885                PAUDIOTESTERRORENTRY pErrEntry;
     886                RTListForEach(&errDesc.List, pErrEntry, AUDIOTESTERRORENTRY, Node)
    883887                {
    884                     /** @todo Use some AudioTestErrorXXX API for enumeration here later. */
    885                     PAUDIOTESTERRORENTRY pErrEntry;
    886                     RTListForEach(&errDesc.List, pErrEntry, AUDIOTESTERRORENTRY, Node)
    887                         RTTestFailed(g_hTest, pErrEntry->szDesc);
     888                    if (RT_FAILURE(pErrEntry->rc))
     889                        RTTestFailed(g_hTest, "%s\n", pErrEntry->szDesc);
     890                    else
     891                        RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "%s\n", pErrEntry->szDesc);
    888892                }
    889                 else
     893
     894                if (cErr == 0)
    890895                    RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Verification successful\n");
    891896
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