mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01: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_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");
|
||||
relative_path = g_strdup (absolute_path);
|
||||
for (i = 0; cwd[i] != '\0'; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user