aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/iomgr/timer_heap_test.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-10-28 07:31:20 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-10-28 07:31:20 -0700
commitfa014a86e3598abf02134189a88c1b8f80c64191 (patch)
treee0395bf34392dbfa232e6a9b39ae49571b62262d /test/core/iomgr/timer_heap_test.c
parent6d4340dda88f6f8771dde54e21620dc32dc4e65a (diff)
parent6628e36a89b3ec709477b7ff494ec5e237ac8231 (diff)
Merge github.com:grpc/grpc into pid_ctl
Diffstat (limited to 'test/core/iomgr/timer_heap_test.c')
-rw-r--r--test/core/iomgr/timer_heap_test.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/core/iomgr/timer_heap_test.c b/test/core/iomgr/timer_heap_test.c
index d1cb0047f2..410d972313 100644
--- a/test/core/iomgr/timer_heap_test.c
+++ b/test/core/iomgr/timer_heap_test.c
@@ -31,6 +31,11 @@
*
*/
+#include "src/core/lib/iomgr/port.h"
+
+// This test only works with the generic timer implementation
+#ifdef GRPC_TIMER_USE_GENERIC
+
#include "src/core/lib/iomgr/timer_heap.h"
#include <stdlib.h>
@@ -315,3 +320,9 @@ int main(int argc, char **argv) {
return 0;
}
+
+#else /* GRPC_TIMER_USE_GENERIC */
+
+int main(int argc, char **argv) { return 1; }
+
+#endif /* GRPC_TIMER_USE_GENERIC */