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:
parent
8a5ca84612
commit
30a00b6a97
@ -1538,7 +1538,8 @@ gst_validate_error_structure (gpointer structure, const gchar * format, ...)
|
|||||||
if (debug)
|
if (debug)
|
||||||
g_string_append (f, 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_string_free (f, TRUE);
|
||||||
g_free (debug);
|
g_free (debug);
|
||||||
g_free (color);
|
g_free (color);
|
||||||
@ -1558,7 +1559,7 @@ gst_validate_abort (const gchar * format, ...)
|
|||||||
tmp = gst_info_strdup_vprintf (format, var_args);
|
tmp = gst_info_strdup_vprintf (format, var_args);
|
||||||
va_end (var_args);
|
va_end (var_args);
|
||||||
|
|
||||||
g_print ("Bail out! %s\n", tmp);
|
g_printerr ("Bail out! %s\n", tmp);
|
||||||
g_free (tmp);
|
g_free (tmp);
|
||||||
exit (-18);
|
exit (-18);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user