tests: Fix running fileutils test in cwd which is a symlinkd1d17e83c6fabb1860fdfb2ec4bbd0b76032892b170/head
commitd1d17e83c6fabb1860fdfb2ec4bbd0b76032892b
authorPhilip Withnall <withnall@endlessm.com>
Wed, 11 Jul 2018 13:43:22 +0000 (11 15:43 +0200)
committerPhilip Withnall <withnall@endlessm.com>
Wed, 11 Jul 2018 13:43:22 +0000 (11 15:43 +0200)
tree84e64852f400fe17469012f70ea87042b3dbf03d
parentad3947c42ee4b695b8371abc8d99cadf66a92829
tests: Fix running fileutils test in cwd which is a symlink

If the fileutils test was run in a directory which is a symlink (for
example, on macOS, /tmp is often a symlink to /private/tmp), a path
comparison was failing. Compare the paths as inodes instead.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/glib/issues/889
glib/tests/fileutils.c