diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2024-05-08 01:56:02 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2024-05-09 17:25:56 +0200 |
commit | 365411ea327a5f126896b106fe81a113bc0cc7df (patch) | |
tree | 4ca0d596c929a25e4ddf5110d2710fbe0a6b6d80 | |
parent | 86dd02f48762ae97c7bc805c45e8905cd969bbac (diff) | |
download | glib-365411ea327a5f126896b106fe81a113bc0cc7df.tar.gz |
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.
-rw-r--r-- | gio/tests/cancellable.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gio/tests/cancellable.c b/gio/tests/cancellable.c index be7017dcb..f12a339cb 100644 --- a/gio/tests/cancellable.c +++ b/gio/tests/cancellable.c @@ -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 it’s ready to execute. Each iteration of * the test will pass it a new #GCancellableSource. */ g_cond_init (&data.cond); |