mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-07 05:08:00 +02:00
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>
This commit is contained in:
parent
0b8878133f
commit
4876dbb161
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue