- Timestamp:
- Jan 9, 2017 12:42:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTJson.cpp
r62727 r65202 101 101 static void tstCorrectnessRcForInvalidType(RTTEST hTest, RTJSONVAL hJsonVal, RTJSONVALTYPE enmType) 102 102 { 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 105 106 if ( enmType != RTJSONVALTYPE_OBJECT 106 107 && enmType != RTJSONVALTYPE_ARRAY) … … 140 141 RTTEST_CHECK_RC(hTest, RTJsonValueQueryString(hJsonVal, &psz), VERR_JSON_VALUE_INVALID_TYPE); 141 142 } 142 #else 143 RT _NOREF3(hTest, hJsonVal, enmType);144 #endif 143 144 RTAssertSetMayPanic(fSavedMayPanic); 145 RTAssertSetQuiet(fSavedQuiet); 145 146 } 146 147
Note:
See TracChangeset
for help on using the changeset viewer.