summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/libutil/test-flopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/lib/libutil/test-flopen.c')
-rw-r--r--tools/regression/lib/libutil/test-flopen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/regression/lib/libutil/test-flopen.c b/tools/regression/lib/libutil/test-flopen.c
index 62fa699..c8191d0 100644
--- a/tools/regression/lib/libutil/test-flopen.c
+++ b/tools/regression/lib/libutil/test-flopen.c
@@ -89,6 +89,7 @@ test_flopen_open(void)
return (result);
}
+#if FLOPEN_CAN_LOCK_AGAINST_SELF
/*
* Test that flopen() can lock against itself
*/
@@ -114,6 +115,7 @@ test_flopen_lock_self(void)
unlink(fn);
return (result);
}
+#endif
/*
* Test that flopen() can lock against other processes
@@ -152,7 +154,9 @@ static struct test {
} t[] = {
{ "flopen_create", test_flopen_create },
{ "flopen_open", test_flopen_open },
+#if FLOPEN_CAN_LOCK_AGAINST_SELF
{ "flopen_lock_self", test_flopen_lock_self },
+#endif
{ "flopen_lock_other", test_flopen_lock_other },
};
OpenPOWER on IntegriCloud