From 07636c619d3adee043e17ea8a713de8cbf148536 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Fri, 11 Aug 2017 20:15:27 +0200 Subject: Skip tests that aren't supported under FreeBSD. --- test/test_syscalls.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/test_syscalls.c') diff --git a/test/test_syscalls.c b/test/test_syscalls.c index e30cfc1..392a210 100644 --- a/test/test_syscalls.c +++ b/test/test_syscalls.c @@ -792,6 +792,7 @@ static int test_create_unlink(void) return 0; } +#ifndef __FreeBSD__ static int test_mknod(void) { int err = 0; @@ -824,6 +825,7 @@ static int test_mknod(void) success(); return 0; } +#endif #define test_open(exist, flags, mode) do_test_open(exist, flags, #flags, mode) @@ -1280,6 +1282,7 @@ static int test_rename_dir(void) return 0; } +#ifndef __FreeBSD__ static int test_mkfifo(void) { int res; @@ -1311,6 +1314,7 @@ static int test_mkfifo(void) success(); return 0; } +#endif static int test_mkdir(void) { @@ -1447,11 +1451,13 @@ int main(int argc, char *argv[]) err += test_create(); err += test_create_unlink(); - err += test_mknod(); err += test_symlink(); err += test_link(); err += test_link2(); +#ifndef __FreeBSD__ + err += test_mknod(); err += test_mkfifo(); +#endif err += test_mkdir(); err += test_rename_file(); err += test_rename_dir(); -- cgit v1.2.3