validate: Get proper error message on diff error instead of assert

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

View file

@ -461,8 +461,11 @@ run_diff (const gchar * expected_file, const gchar * actual_file)
"--", expected_file, actual_file, NULL);
gchar *stdout_text = NULL;
if (!error) {
g_subprocess_communicate_utf8 (process, NULL, NULL, &stdout_text, NULL,
&error);
}
if (!error) {
gboolean colored = gst_validate_has_colored_output ();
GSubprocess *process2;