Skip to content

tests: Fix fileutils build on FreeBSD and macOS

Philip Withnall requested to merge wip/pwithnall/fix-ftruncate64 into main

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

Merge request reports