mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 12:53:07 +02:00
Merge branch 'find-test-program-freebsd' into 'main'
Fix test_find_program on FreeBSD See merge request GNOME/glib!3580
This commit is contained in:
commit
f51f40c440
@ -451,7 +451,9 @@ test_find_program (void)
|
|||||||
g_assert (res != NULL);
|
g_assert (res != NULL);
|
||||||
g_free (res);
|
g_free (res);
|
||||||
|
|
||||||
cwd = g_get_current_dir ();
|
/* Resolve any symlinks in the CWD as that breaks the test e.g.
|
||||||
|
* with the FreeBSD /home/ -> /usr/home symlink. */
|
||||||
|
cwd = realpath (".", NULL);
|
||||||
absolute_path = g_find_program_in_path ("sh");
|
absolute_path = g_find_program_in_path ("sh");
|
||||||
relative_path = g_strdup (absolute_path);
|
relative_path = g_strdup (absolute_path);
|
||||||
for (i = 0; cwd[i] != '\0'; i++)
|
for (i = 0; cwd[i] != '\0'; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user