Skip to content

Commit

Permalink
Skip broken test on OS X
Browse files Browse the repository at this point in the history
We can't help it, pselect(2) on OS X is implemented in userspace and suffers
from a race condition when handling signals. Oh well!
  • Loading branch information
Jim Porter committed Jan 22, 2016
1 parent a2856dd commit 0952f37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/posix/test_subprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ suite<> test_subprocess("subprocess utilities", [](auto &_) {
expect(f.results[1], equal_to(""));
});

_.test("read until signal", [](read_into_fixture &f) {
attributes sigtest_attrs;
#ifdef __APPLE__
sigtest_attrs.insert(skip("pselect(2) is buggy on OS X"));
#endif

_.test("read until signal", sigtest_attrs, [](read_into_fixture &f) {
scoped_sigprocmask mask;
mask.push(SIG_BLOCK, SIGUSR1);

Expand Down

0 comments on commit 0952f37

Please sign in to comment.