there is no sem_timedwait on OSX. For inter-threads communication,
we can replace sem_t with pthread_cond_t. But for inter-processes
communication, it's extremely hard to figure out how to do a timed
wait. So disable the test case on OSX
Signed-off-by: Yan, Zheng <zyan@redhat.com>
test/libcephfs/test.cc \
test/libcephfs/readdir_r_cb.cc \
test/libcephfs/caps.cc \
- test/libcephfs/multiclient.cc \
- test/libcephfs/flock.cc
+ test/libcephfs/multiclient.cc
+if LINUX
+ceph_test_libcephfs_SOURCES += test/libcephfs/flock.cc
+endif # LINUX
+
ceph_test_libcephfs_LDADD = $(LIBCEPHFS) $(UNITTEST_LDADD)
ceph_test_libcephfs_CXXFLAGS = $(UNITTEST_CXXFLAGS)
bin_DEBUGPROGRAMS += ceph_test_libcephfs