diff options
author | Simon McVittie <smcv@collabora.com> | 2019-06-29 23:34:41 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2019-07-02 20:45:59 +0100 |
commit | 4876dbb161ab82b2da005b06fdc9e5dc8e538c40 (patch) | |
tree | 70ef6f0049f3d61aaacd06c1bcb93d4063569f11 | |
parent | 0b8878133f806351b213b80097b2bd6de5677f2c (diff) | |
download | dbus-4876dbb161ab82b2da005b06fdc9e5dc8e538c40.tar.gz |
tests: Improve diagnostics for malloc-failure tests
Some of these appear to hang, but making this diagnostic appear in the
log reveals the truth: it's just very slow.
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r-- | dbus/dbus-internals.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c index 2f456eda..7420f203 100644 --- a/dbus/dbus-internals.c +++ b/dbus/dbus-internals.c @@ -1003,9 +1003,9 @@ run_failing_each_malloc (int n_mallocs, { _dbus_set_fail_alloc_counter (n_mallocs); - _dbus_verbose ("\n===\n%s: (will fail malloc %d with %d failures)\n===\n", - description, n_mallocs, - _dbus_get_fail_alloc_failures ()); + _dbus_test_diag ("%s: will fail malloc %d and %d that follow", + description, n_mallocs, + _dbus_get_fail_alloc_failures () - 1); if (!(* func) (data, FALSE)) return FALSE; |