pthread_barrier_t isn't supported on OS X therefore it causes a compilation failure
1: test_hello_watchlocation_with_dwarf (TestWatchLocation.HelloWatchLocationTestCase) Test watching a location with '-x size' option. ... os command: make clean EXE='test_hello_watchlocation_with_dwarf' CXX_SOURCES='main.cpp'; make MAKE_DSYM=NO ARCH=x86_64 CC="clang" EXE='test_hello_watchlocation_with_dwarf' CXX_SOURCES='main.cpp' with pid: 90141 stdout: rm -f "test_hello_watchlocation_with_dwarf" main.o main.d main.d.tmp rm -f -r "test_hello_watchlocation_with_dwarf.dSYM" clang++ -std=c++11 -g -O0 -arch x86_64 -I/Users/IliaK/p/llvm/tools/lldb/test/make/../../include -c -o main.o main.cpp stderr: main.cpp:21:1: error: unknown type name 'pthread_barrier_t' pthread_barrier_t g_barrier; ^ 1 error generated. make: *** [main.o] Error 1 retcode: 2 ERROR
This patch uses pthread_mutex_t and pthread_cond_t which are standard.
This test works on OS X.