]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_libcephfs: disable flock test on OSX
authorYan, Zheng <zyan@redhat.com>
Fri, 24 Jul 2015 10:13:22 +0000 (18:13 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 31 Aug 2015 08:00:25 +0000 (16:00 +0800)
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>
src/test/Makefile-client.am

index dee4d0e8e74860498f28e9cb2ef811fd7870ee33..aef841d1565601d96ca3436519ba75b055c2ba64 100644 (file)
@@ -428,8 +428,11 @@ ceph_test_libcephfs_SOURCES = \
        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