mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
test: disable cross process sem tests on non-Linux
How to make this portable: - MAP_ANONYMOUS -> MAP_ANON (OSX) - sem_init (anonymous semaphore) needs to be replaced by named semaphores using sem_open/sem_close. Use a memory address of the sem_t variable to hack anonymous semaphore behavior. - sem_getvalue isn't supported on OSX. it is used here to do sem_wait/sem_post to bring a semaphore back to a specific value. to get around this we may need to restructure the test so that the semaphore can be destroyed and re-initialized rather than inspected as its currently being done. Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
parent
6342d05195
commit
3d19f7c876
@ -192,6 +192,7 @@ bin_DEBUGPROGRAMS += ceph_erasure_code_benchmark
|
||||
|
||||
## System tests
|
||||
|
||||
if LINUX
|
||||
libsystest_la_SOURCES = \
|
||||
test/system/cross_process_sem.cc \
|
||||
test/system/systest_runnable.cc \
|
||||
@ -229,6 +230,7 @@ ceph_test_rados_watch_notify_SOURCES = \
|
||||
test/system/st_rados_notify.cc
|
||||
ceph_test_rados_watch_notify_LDADD = $(LIBRADOS) libsystest.la $(PTHREAD_LIBS)
|
||||
bin_DEBUGPROGRAMS += ceph_test_rados_watch_notify
|
||||
endif
|
||||
|
||||
ceph_bench_log_SOURCES = test/bench_log.cc
|
||||
ceph_bench_log_LDADD = $(CEPH_GLOBAL)
|
||||
|
Loading…
Reference in New Issue
Block a user