summaryrefslogtreecommitdiff
path: root/test/common
diff options
context:
space:
mode:
Diffstat (limited to 'test/common')
-rwxr-xr-xtest/common/testcommon.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/common/testcommon.cpp b/test/common/testcommon.cpp
index c6d0e52f..b00ee281 100755
--- a/test/common/testcommon.cpp
+++ b/test/common/testcommon.cpp
@@ -397,9 +397,11 @@ int test(int argc, const char *argv[])
TEST_THAT(lock1.TryAndGetLock("testfiles/lock1") == true);
// Try to lock something using the same lock
TEST_CHECK_THROWS(lock1.TryAndGetLock("testfiles/non-exist/lock2"), CommonException, NamedLockAlreadyLockingSomething);
+#ifndef PLATFORM_open_USE_fcntl
// And again on that name
NamedLock lock2;
TEST_THAT(lock2.TryAndGetLock("testfiles/lock1") == false);
+#endif
}
{
// Check that it unlocked when it went out of scope