We now test for real_refcount >= expected_refcount, because various
parts of the code (a11y, selection, cursor, ...) can and do add
references.
- g_assert_cmpint (expected_ref_count, ==, info->ref_count);
+ {
+ if (expected_ref_count == 0)
+ g_assert_cmpint (expected_ref_count, ==, info->ref_count);
+ else
+ g_assert_cmpint (expected_ref_count, <=, info->ref_count);
+ }
return expected_ref_count == info->ref_count;
}
return expected_ref_count == info->ref_count;
}