Commit d3784575 authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

Merge pull request #376 from dwrensha/disable-urgent-observer

Disable UrgentObserver test on macOS.
parents 634c0401 9591f2f3
...@@ -455,6 +455,8 @@ TEST(AsyncUnixTest, WriteObserver) { ...@@ -455,6 +455,8 @@ TEST(AsyncUnixTest, WriteObserver) {
EXPECT_TRUE(writable); EXPECT_TRUE(writable);
} }
#if !__APPLE__
// Disabled on macOS due to https://github.com/sandstorm-io/capnproto/issues/374.
TEST(AsyncUnixTest, UrgentObserver) { TEST(AsyncUnixTest, UrgentObserver) {
// Verify that FdObserver correctly detects availability of out-of-band data. // Verify that FdObserver correctly detects availability of out-of-band data.
// Availability of out-of-band data is implementation-specific. // Availability of out-of-band data is implementation-specific.
...@@ -519,6 +521,7 @@ TEST(AsyncUnixTest, UrgentObserver) { ...@@ -519,6 +521,7 @@ TEST(AsyncUnixTest, UrgentObserver) {
KJ_SYSCALL(send(clientFd, &c, 1, 0)); KJ_SYSCALL(send(clientFd, &c, 1, 0));
KJ_SYSCALL(shutdown(clientFd, SHUT_RDWR)); KJ_SYSCALL(shutdown(clientFd, SHUT_RDWR));
} }
#endif
TEST(AsyncUnixTest, SteadyTimers) { TEST(AsyncUnixTest, SteadyTimers) {
captureSignals(); captureSignals();
......
...@@ -237,6 +237,9 @@ public: ...@@ -237,6 +237,9 @@ public:
// //
// It is an error to call `whenUrgentDataAvailable()` again when the promise returned previously // It is an error to call `whenUrgentDataAvailable()` again when the promise returned previously
// has not yet resolved. If you do this, the previous promise may throw an exception. // has not yet resolved. If you do this, the previous promise may throw an exception.
//
// WARNING: This has some known weird behavior on macOS. See
// https://github.com/sandstorm-io/capnproto/issues/374.
private: private:
UnixEventPort& eventPort; UnixEventPort& eventPort;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment