Skip to content

tests: Run expected-to-hang cancellable tests in subprocesses

Philip Withnall requested to merge wip/pwithnall/cancellable-test-fixes into main

These tests are expected to cause a thread to deadlock. That seems to be fine with glibc on Linux, but the glibc version on FreeBSD can detect the deadlock, and aborts the whole test process with:

GLib (gthread-posix.c): Unexpected error from C library during 'pthread_mutex_lock': Resource deadlock avoided.  Aborting.

This is fair enough.

To avoid this causing the test suite to fail, run those two tests in subprocesses. This also means we’re not carrying a deadlocked thread around for the rest of the test suite.

Improves on commit 62192925.

Signed-off-by: Philip Withnall pwithnall@gnome.org

Merge request reports