Meson fails TAP test when g_test_message is called before g_test_init
Since 2.76, g_test_init
will print the TAP version 13
line when in TAP output mode.
When a test calls g_test_message
before calling g_test_init
, the version line will be preceded by log messages.
When Meson encounters the TAP version declaration and it isn't the first line read, it will fail the test.
Flatpak contains such tests (e.g. test-exports
). Also see https://github.com/flatpak/flatpak/pull/5355.