It's just painfully slow, particularly when we fork (as we do in
test-bus to test service activation).
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107194
description, approx_mallocs);
setting = _dbus_getenv ("DBUS_TEST_MALLOC_FAILURES");
+
if (setting != NULL)
{
DBusString str;
max_failures_to_try = 4;
}
+ if (RUNNING_ON_VALGRIND && _dbus_getenv ("DBUS_TEST_SLOW") == NULL)
+ {
+ /* The full OOM testing is slow, valgrind is slow, so the
+ * combination is just horrible. Only do this if the user
+ * asked for extra-slow tests. */
+ max_failures_to_try = 0;
+ }
+
if (max_failures_to_try < 1)
{
_dbus_test_diag ("not testing OOM handling");