summaryrefslogtreecommitdiff
path: root/dbus/dbus-internals.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2017-11-14 16:06:05 +0000
committerSimon McVittie <smcv@collabora.com>2017-11-15 12:12:23 +0000
commit39ef65d07d2475c43ae6d46e251cc62010d4c27f (patch)
treeb4b9f449acfd150c1604c16f75211177aedc3bdb /dbus/dbus-internals.c
parent13b640544dae99cfa851f3bbe9338ca58844aea8 (diff)
downloaddbus-39ef65d07d2475c43ae6d46e251cc62010d4c27f.tar.gz
bus: Silence most log messages when testing OOM handling
In parts of the OOM testing, our logging produces multiple megabytes of output. Let's not do that. Reviewed-by: Philip Withnall <withnall@endlessm.com> Signed-off-by: Simon McVittie <smcv@collabora.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103601
Diffstat (limited to 'dbus/dbus-internals.c')
-rw-r--r--dbus/dbus-internals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c
index 267aef97..a20a5395 100644
--- a/dbus/dbus-internals.c
+++ b/dbus/dbus-internals.c
@@ -1006,7 +1006,7 @@ run_failing_each_malloc (int n_mallocs,
description, n_mallocs,
_dbus_get_fail_alloc_failures ());
- if (!(* func) (data))
+ if (!(* func) (data, FALSE))
return FALSE;
n_mallocs -= 1;
@@ -1046,7 +1046,7 @@ _dbus_test_oom_handling (const char *description,
_dbus_verbose ("Running once to count mallocs\n");
- if (!(* func) (data))
+ if (!(* func) (data, TRUE))
return FALSE;
approx_mallocs = _DBUS_INT_MAX - _dbus_get_fail_alloc_counter ();