From de79f37492266a96e18353c45b0219b35f5ae7e6 Mon Sep 17 00:00:00 2001 From: Hans Fugal Date: Thu, 11 Jun 2015 13:35:40 -0700 Subject: [PATCH] Build and run futures tests on OSX Summary: They don't pass, but they build! Reviewed By: @jsedgwick Differential Revision: D2141717 --- folly/futures/test/FutureTest.cpp | 3 ++- folly/test/Makefile.am | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/folly/futures/test/FutureTest.cpp b/folly/futures/test/FutureTest.cpp index ec5cb5a1..723b358e 100644 --- a/folly/futures/test/FutureTest.cpp +++ b/folly/futures/test/FutureTest.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -648,7 +649,7 @@ TEST(Future, CircularDependencySharedPtrSelfReset) { ptr.reset(); - promise.setWith([]{return 1l;}); + promise.setValue(1); } TEST(Future, Constructor) { diff --git a/folly/test/Makefile.am b/folly/test/Makefile.am index 51f61acd..bbe732e1 100644 --- a/folly/test/Makefile.am +++ b/folly/test/Makefile.am @@ -182,4 +182,34 @@ spooky_hash_v2_test_SOURCES = SpookyHashV2Test.cpp spooky_hash_v2_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la TESTS += spooky_hash_v2_test +futures_test_SOURCES = \ + ../futures/test/CollectTest.cpp \ + ../futures/test/ContextTest.cpp \ + ../futures/test/CoreTest.cpp \ + ../futures/test/EnsureTest.cpp \ + ../futures/test/ExecutorTest.cpp \ + ../futures/test/FSMTest.cpp \ + ../futures/test/FilterTest.cpp \ + ../futures/test/FutureTest.cpp \ + ../futures/test/HeaderCompileTest.cpp \ + ../futures/test/InterruptTest.cpp \ + ../futures/test/MapTest.cpp \ + ../futures/test/PollTest.cpp \ + ../futures/test/PromiseTest.cpp \ + ../futures/test/ReduceTest.cpp \ + ../futures/test/SharedPromiseTest.cpp \ + ../futures/test/ThenCompileTest.cpp \ + ../futures/test/ThenTest.cpp \ + ../futures/test/TimekeeperTest.cpp \ + ../futures/test/TryTest.cpp \ + ../futures/test/UnitTest.cpp \ + ../futures/test/UnwrapTest.cpp \ + ../futures/test/ViaTest.cpp \ + ../futures/test/WaitTest.cpp \ + ../futures/test/WillEqualTest.cpp \ + ../futures/test/WindowTest.cpp + +futures_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la +TESTS += futures_test + check_PROGRAMS += $(TESTS) -- 2.34.1