tests: Fix fileutils build on FreeBSD and macOS
The test needs to call ftruncate64()
(not ftruncate()
) to guarantee
it’s using the 64-bit version on Linux, but this doesn’t exist on other
platforms.
Test to see if it exists and, if not, skip the test.
Fixes commit cf5e371c, and fixes CI failures like https://gitlab.gnome.org/GNOME/glib/-/pipelines/602930.
Signed-off-by: Philip Withnall pwithnall@gnome.org