Summary:
configure seems to think ubuntu 14.04 doesn't have pthread_atfork, which seems wrong?! But this test seems to fail if we don't have it on some platform anyway. Not sure the right fix, just disable it for now?
Test Plan: watch https://ci-builds.fb.com/job/folly/
Reviewed By: hans@fb.com
Subscribers: doug, folly-diffs@
FB internal diff:
D1783046
Signature: t1:
1783046:
1421348575:
d279877abcc597a04c285092a5e5e53406922d5a
Blame Revision:
D1768669
} // namespace
+#ifdef FOLLY_HAVE_PTHREAD_ATFORK
TEST(ThreadLocal, Fork) {
EXPECT_EQ(1, ptr->value()); // ensure created
EXPECT_EQ(1, totalValue());
EXPECT_EQ(1, totalValue());
}
+#endif
struct HoldsOneTag2 {};