From 731f6aaa689f33471708696870e5b6d3ee7cb1b4 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Fri, 24 Jul 2015 18:13:22 +0800 Subject: [PATCH] test_libcephfs: disable flock test on OSX 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 --- src/test/Makefile-client.am | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/Makefile-client.am b/src/test/Makefile-client.am index dee4d0e8e7486..aef841d156560 100644 --- a/src/test/Makefile-client.am +++ b/src/test/Makefile-client.am @@ -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 -- 2.39.5