Merge branch 'wip/pwithnall/fix-bsd-spawn-test' into 'main'

tests: Make a string comparison on an error string more relaxed

See merge request GNOME/glib!2597
This commit is contained in:
Simon McVittie 2022-04-11 15:16:20 +00:00
commit bb04fdc013

View File

@ -107,8 +107,8 @@ test_spawn_basics (void)
NULL, &erroutput, NULL, &err);
g_assert_no_error (err);
g_assert_true (result);
g_assert_cmpstr (erroutput, ==,
"sort: cannot read: non-existing-file.txt: No such file or directory\n");
g_assert_true (g_str_has_prefix (erroutput, "sort: "));
g_assert_nonnull (strstr (erroutput, "No such file or directory"));
g_free (erroutput);
erroutput = NULL;