Commit 6502bca2 authored by Dave Watson's avatar Dave Watson Committed by woo

'fix' threadlocal fork test

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
parent e300e8b6
...@@ -437,6 +437,7 @@ int totalValue() { ...@@ -437,6 +437,7 @@ int totalValue() {
} // namespace } // namespace
#ifdef FOLLY_HAVE_PTHREAD_ATFORK
TEST(ThreadLocal, Fork) { TEST(ThreadLocal, Fork) {
EXPECT_EQ(1, ptr->value()); // ensure created EXPECT_EQ(1, ptr->value()); // ensure created
EXPECT_EQ(1, totalValue()); EXPECT_EQ(1, totalValue());
...@@ -506,6 +507,7 @@ TEST(ThreadLocal, Fork) { ...@@ -506,6 +507,7 @@ TEST(ThreadLocal, Fork) {
EXPECT_EQ(1, totalValue()); EXPECT_EQ(1, totalValue());
} }
#endif
struct HoldsOneTag2 {}; struct HoldsOneTag2 {};
......
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