aboutsummaryrefslogtreecommitdiff
path: root/test/test_syscalls.c
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-11 20:15:27 +0200
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-11 21:13:40 +0200
commit07636c619d3adee043e17ea8a713de8cbf148536 (patch)
treee8485152b3210d3c742bffdc81759b152497d10b /test/test_syscalls.c
parentc869f3132294ba0f59de9af2c5e39be730051b48 (diff)
Skip tests that aren't supported under FreeBSD.
Diffstat (limited to 'test/test_syscalls.c')
-rw-r--r--test/test_syscalls.c8
1 files changed, 7 insertions, 1 deletions
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();