Commit b8912cf7 authored by Simon McVittie's avatar Simon McVittie

Merge branch 'malloc-fail-diags' into 'master'

tests: Improve diagnostics for malloc-failure tests

See merge request !118
parents 47148c6b 4876dbb1
Pipeline #46372 passed with stage
in 7 minutes and 59 seconds
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment