]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: disable cross process sem tests on non-Linux 1043/head
authorNoah Watkins <noahwatkins@gmail.com>
Sun, 29 Sep 2013 19:19:00 +0000 (12:19 -0700)
committerNoah Watkins <noahwatkins@gmail.com>
Sat, 4 Jan 2014 17:18:04 +0000 (09:18 -0800)
commit3d19f7c8765440582a0f1d3a047efcf8afe391b1
treec64ba9f6e0008761570cad516160eb80c6f6c85c
parent6342d05195ce15ff09ed7395b595ce48e25c4278
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>
src/test/Makefile.am