gio/tests/cancellable: Explain failure on GCancellableSource tests on valgrind

It looks like that finally also valgrind notices the same leaks as
address sanitizer does. It does it more randomly but it still happens,
so better to inform about until #2309 is resolved.
This commit is contained in:
Marco Trevisan (Treviño) 2024-05-08 01:56:02 +02:00
parent 86dd02f487
commit 365411ea32

View File

@ -25,6 +25,7 @@
#include <gio/gio.h>
#include "glib/glib-private.h"
#include "glib/gvalgrind.h"
/* How long to wait in ms for each iteration */
#define WAIT_ITERATION (10)
@ -276,6 +277,11 @@ test_cancellable_source_threaded_dispose (void)
"to (in another thread)");
g_test_bug ("https://gitlab.gnome.org/GNOME/glib/issues/1841");
#ifdef ENABLE_VALGRIND
if (RUNNING_ON_VALGRIND)
g_test_incomplete ("FIXME: Leaks lots of GCancellableSource objects, see glib#2309");
#endif
/* Create a new thread and wait until its ready to execute. Each iteration of
* the test will pass it a new #GCancellableSource. */
g_cond_init (&data.cond);