kubabrecka added a comment. Fork takes a long time on OS X (due to the large mmap TSan regions), much longer than on Linux. On that system, it even takes longer than 10 seconds. Spinning is bad, but it will at least make the test pass. http://reviews.llvm.org/D18476