diff options
author | Simon McVittie <smcv@collabora.com> | 2017-11-14 16:06:05 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2017-11-15 12:12:23 +0000 |
commit | 39ef65d07d2475c43ae6d46e251cc62010d4c27f (patch) | |
tree | b4b9f449acfd150c1604c16f75211177aedc3bdb /test/message.c | |
parent | 13b640544dae99cfa851f3bbe9338ca58844aea8 (diff) | |
download | dbus-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 'test/message.c')
-rw-r--r-- | test/message.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/message.c b/test/message.c index 75c441e5..7141e314 100644 --- a/test/message.c +++ b/test/message.c @@ -37,7 +37,8 @@ /* Return TRUE if the right thing happens, but the right thing might include * OOM. */ static dbus_bool_t -test_array (void *contained_signature) +test_array (void *contained_signature, + dbus_bool_t have_memory) { DBusMessage *m; DBusMessageIter iter; @@ -149,7 +150,8 @@ out: /* Return TRUE if the right thing happens, but the right thing might include * OOM or inability to pass fds. */ static dbus_bool_t -test_fd (void *ignored) +test_fd (void *ignored, + dbus_bool_t have_memory) { DBusMessage *m = NULL; DBusPipe pipe; @@ -182,7 +184,8 @@ out: * Return TRUE if the right thing happens, but the right thing might include * OOM. */ static dbus_bool_t -test_zero_iter (void *ignored) +test_zero_iter (void *ignored, + dbus_bool_t have_memory) { DBusMessage *m; DBusMessageIter iter = DBUS_MESSAGE_ITER_INIT_CLOSED; |