Backport !2026 “Split g_test_log() messages that contain multiple lines” to glib-2-68
When using TAP we want every single line to be one of the following:
- a valid TAP clause
- a comment
- a blank line
Typical explicit test logs are single line comments, but in some cases we might end up printing debug messages from libraries, and those may contain multiple lines. When that happens, we break the TAP and fail the test in conditions entirely outside of our control.
One option to avoid outright failure is to always prepend each line of a
#, to ensure that the whole thing is considered a comment.
Trivial backport of !2026 (merged).