Disallowing setting the log writer function more than once (commit dfb3517d) breaks GTK tests
commit dfb3517d3790c014f7c964414405cd9775ad4b9d
Author: Philip Withnall <pwithnall@endlessos.org>
Date: Mon Apr 25 12:23:45 2022 +0100
gmessages: Error if g_log_set_writer_func() is called multiple times
Inspired by https://gitlab.gnome.org/GNOME/glib/-/issues/2638.
This requires moving the tests to subprocesses, so that
`g_log_set_writer_func()` is only called once per process.
It also adds a test for the new error.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This breaks established behavior.
The GTK testsuite is relying on temporarily setting a different log writer function that ignores warnings.
Edited by Philip Withnall