VirtualBox

Changeset 62931 in vbox for trunk


Ignore:
Timestamp:
Aug 3, 2016 4:21:43 PM (8 years ago)
Author:
vboxsync
Message:

tstUtf8: Some adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstUtf8.cpp

    r62916 r62931  
    938938            memcpy(wszOutCopy, aTests[i].pcszOut, aTests[i].cwc * 2);
    939939        }
    940         cReplacements = RTUtf16PurgeComplementSet(wszInCopy, aTests[i].pcCpSet,
    941                                                   aTests[i].chReplacement);
     940
     941        RTTestDisableAssertions(hTest);
     942        cReplacements = RTUtf16PurgeComplementSet(wszInCopy, aTests[i].pcCpSet, aTests[i].chReplacement);
     943        RTTestRestoreAssertions(hTest);
     944
    942945        if (cReplacements != aTests[i].cExpected)
    943946            RTTestFailed(hTest, "#%u: expected %lld, actual %lld\n", i,
     
    15181521    TstRTStrPurgeEncoding(hTest);
    15191522    /* TstRT*PurgeComplementSet test conditions which assert. */
    1520     bool fAreQuiet = RTAssertAreQuiet(), fMayPanic = RTAssertMayPanic();
    1521     RTAssertSetQuiet(true);
    1522     RTAssertSetMayPanic(false);
    15231523    TstRTStrPurgeComplementSet(hTest);
    15241524    TstRTUtf16PurgeComplementSet(hTest);
    1525     RTAssertSetQuiet(fAreQuiet);
    1526     RTAssertSetMayPanic(fMayPanic);
    15271525    testStrEnd(hTest);
    15281526    testStrStr(hTest);
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