validate: Don't print to stdout on bail out

Otherwise, if the output is multiline like from expected/actual file
comparison mismatch, meson will parse the lines for TAP formatted
strings and report an error. In that case the tests is accidently
SKIPPED instead of FAIL.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8376>
This commit is contained in:
Jochen Henneberg 2025-01-28 11:45:32 +01:00 committed by GStreamer Marge Bot
parent 8a5ca84612
commit 30a00b6a97

View File

@ -1538,7 +1538,8 @@ gst_validate_error_structure (gpointer structure, const gchar * format, ...)
if (debug)
g_string_append (f, debug);
g_print ("Bail out! %sERROR%s: %s\n\n", color ? color : "", endcolor, f->str);
g_printerr ("Bail out! %sERROR%s: %s\n\n", color ? color : "", endcolor,
f->str);
g_string_free (f, TRUE);
g_free (debug);
g_free (color);
@ -1558,7 +1559,7 @@ gst_validate_abort (const gchar * format, ...)
tmp = gst_info_strdup_vprintf (format, var_args);
va_end (var_args);
g_print ("Bail out! %s\n", tmp);
g_printerr ("Bail out! %s\n", tmp);
g_free (tmp);
exit (-18);
}