From: Vassili Tchersky Date: Mon, 17 Feb 2025 07:47:57 +0000 (+0100) Subject: tests: Disable tests with TMP_FILE on FreeBSD X-Git-Tag: fuse-3.17.1-rc1~10 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2eccb37c3a0134720017390c6d7d8fc20f5a93fa;p=qemu-gpiodev%2Flibfuse.git tests: Disable tests with TMP_FILE on FreeBSD Not supported yet on this platform. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283179 Signed-off-by: Vassili Tchersky --- diff --git a/test/test_syscalls.c b/test/test_syscalls.c index 26b2ff2..97906a3 100644 --- a/test/test_syscalls.c +++ b/test/test_syscalls.c @@ -1957,6 +1957,7 @@ static int do_test_create_ro_dir(int flags, const char *flags_str) return 0; } +#ifndef __FreeBSD__ /* this tests open with O_TMPFILE note that this will only work with the fuse low level api you will get ENOTSUP with the high level api */ @@ -2054,6 +2055,7 @@ static int test_create_and_link_tmpfile(void) success(); return 0; } +#endif int main(int argc, char *argv[]) { @@ -2183,8 +2185,10 @@ int main(int argc, char *argv[]) err += test_create_ro_dir(O_CREAT | O_WRONLY); err += test_create_ro_dir(O_CREAT | O_TRUNC); err += test_copy_file_range(); +#ifndef __FreeBSD__ err += test_create_tmpfile(); err += test_create_and_link_tmpfile(); +#endif unlink(testfile2); unlink(testsock);