Index: /trunk/src/VBox/Runtime/testcase/tstRTJson.cpp
===================================================================
--- /trunk/src/VBox/Runtime/testcase/tstRTJson.cpp	(revision 65201)
+++ /trunk/src/VBox/Runtime/testcase/tstRTJson.cpp	(revision 65202)
@@ -101,6 +101,7 @@
 static void tstCorrectnessRcForInvalidType(RTTEST hTest, RTJSONVAL hJsonVal, RTJSONVALTYPE enmType)
 {
-#ifndef RT_STRICT /* Enable manually if assertions are enabled or it will assert all over the place for debug builds. */
-/** @todo you can disable assertions and all the noise. See RTAssertSetMayPanic and RTAssertSetQuiet. */
+    bool fSavedMayPanic = RTAssertSetMayPanic(false);
+    bool fSavedQuiet    = RTAssertSetQuiet(true);
+
     if (   enmType != RTJSONVALTYPE_OBJECT
         && enmType != RTJSONVALTYPE_ARRAY)
@@ -140,7 +141,7 @@
         RTTEST_CHECK_RC(hTest, RTJsonValueQueryString(hJsonVal, &psz), VERR_JSON_VALUE_INVALID_TYPE);
     }
-#else
-    RT_NOREF3(hTest, hJsonVal, enmType);
-#endif
+
+    RTAssertSetMayPanic(fSavedMayPanic);
+    RTAssertSetQuiet(fSavedQuiet);
 }
 
