Commit 76551ae8 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 1

Don't run the thread local tests requiring dlopen on Windows

Summary: When I initially added the surrounding `#ifdef` I failed at where I put my `#endif`, as I left the shared library test enabled. This disables it for Windows.

Reviewed By: yfeldblum

Differential Revision: D3622769

fbshipit-source-id: f263201239095bbef076300d5f40649ebee1173c
parent a955532d
...@@ -575,7 +575,6 @@ TEST(ThreadLocal, Fork2) { ...@@ -575,7 +575,6 @@ TEST(ThreadLocal, Fork2) {
EXPECT_TRUE(false) << "fork failed"; EXPECT_TRUE(false) << "fork failed";
} }
} }
#endif
// Elide this test when using any sanitizer. Otherwise, the dlopen'ed code // Elide this test when using any sanitizer. Otherwise, the dlopen'ed code
// would end up running without e.g., ASAN-initialized data structures and // would end up running without e.g., ASAN-initialized data structures and
...@@ -624,6 +623,7 @@ TEST(ThreadLocal, SharedLibrary) { ...@@ -624,6 +623,7 @@ TEST(ThreadLocal, SharedLibrary) {
t2.join(); t2.join();
} }
#endif
#endif #endif
namespace folly { namespace threadlocal_detail { namespace folly { namespace threadlocal_detail {
......
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