VirtualBox

Changeset 65202 in vbox for trunk/src


Ignore:
Timestamp:
Jan 9, 2017 12:42:54 PM (8 years ago)
Author:
vboxsync
Message:

Runtime/tstRTJson: Fix todo

File:
1 edited

Legend:

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

    r62727 r65202  
    101101static void tstCorrectnessRcForInvalidType(RTTEST hTest, RTJSONVAL hJsonVal, RTJSONVALTYPE enmType)
    102102{
    103 #ifndef RT_STRICT /* Enable manually if assertions are enabled or it will assert all over the place for debug builds. */
    104 /** @todo you can disable assertions and all the noise. See RTAssertSetMayPanic and RTAssertSetQuiet. */
     103    bool fSavedMayPanic = RTAssertSetMayPanic(false);
     104    bool fSavedQuiet    = RTAssertSetQuiet(true);
     105
    105106    if (   enmType != RTJSONVALTYPE_OBJECT
    106107        && enmType != RTJSONVALTYPE_ARRAY)
     
    140141        RTTEST_CHECK_RC(hTest, RTJsonValueQueryString(hJsonVal, &psz), VERR_JSON_VALUE_INVALID_TYPE);
    141142    }
    142 #else
    143     RT_NOREF3(hTest, hJsonVal, enmType);
    144 #endif
     143
     144    RTAssertSetMayPanic(fSavedMayPanic);
     145    RTAssertSetQuiet(fSavedQuiet);
    145146}
    146147
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