Skip to content

Commit 5057427

Browse files
committed
ifdef out new tests until we've fixed support in libkqueue
1 parent 7d314cf commit 5057427

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

test/common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
# include <netinet/in.h>
5656
#endif
5757

58+
#if defined(__APPLE__) || defined(__FreeBSD__)
59+
#define NATIVE_KQUEUE 1
60+
#endif
61+
5862
#ifndef _WIN32
5963
#include <sys/socket.h>
6064
#include <sys/stat.h>

test/threading.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,7 @@ test_kevent_threading_close(struct test_context *ctx)
7070
void
7171
test_threading(struct test_context *ctx)
7272
{
73+
#ifdef NATIVE_KQUEUE
7374
test(kevent_threading_close, ctx);
75+
#endif
7476
}

test/user.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ test_evfilt_user(struct test_context *ctx)
237237
#ifdef EV_DISPATCH
238238
test(kevent_user_dispatch, ctx);
239239
#endif
240+
#ifdef NATIVE_KQUEUE
240241
test(kevent_user_trigger_from_thread, ctx);
242+
#endif
241243
/* TODO: try different fflags operations */
242244
}

0 commit comments

Comments
 (0)