mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-26 16:06:52 +00:00
validate: 'bat' is optional
If 'bat' is not installed G_IS_SUBPROCESS (subprocess) fails and the error message is misleading. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8376>
This commit is contained in:
parent
ed943b04c0
commit
61fc65475e
1 changed files with 5 additions and 2 deletions
|
@ -479,8 +479,11 @@ run_diff (const gchar * expected_file, const gchar * actual_file)
|
||||||
"diff", "--paging", "never", "--color", colored ? "always" : "never",
|
"diff", "--paging", "never", "--color", colored ? "always" : "never",
|
||||||
fname, NULL);
|
fname, NULL);
|
||||||
|
|
||||||
|
if (!error) {
|
||||||
g_subprocess_communicate_utf8 (process2, NULL, NULL, &tmpstdout, NULL,
|
g_subprocess_communicate_utf8 (process2, NULL, NULL, &tmpstdout, NULL,
|
||||||
&error);
|
&error);
|
||||||
|
}
|
||||||
|
|
||||||
if (!error) {
|
if (!error) {
|
||||||
g_free (stdout_text);
|
g_free (stdout_text);
|
||||||
stdout_text = tmpstdout;
|
stdout_text = tmpstdout;
|
||||||
|
|
Loading…
Reference in a new issue