Don't run the thread local tests requiring dlopen on Windows
[folly.git] / folly / test / ThreadLocalTest.cpp
index e836ef37d4290a4b2fe21f11a36a3e0f41494768..e2e2fce0ead5a8dced6088e8830eb604f5c86f91 100644 (file)
@@ -575,7 +575,6 @@ TEST(ThreadLocal, Fork2) {
     EXPECT_TRUE(false) << "fork failed";
   }
 }
-#endif
 
 // Elide this test when using any sanitizer. Otherwise, the dlopen'ed code
 // would end up running without e.g., ASAN-initialized data structures and
@@ -624,6 +623,7 @@ TEST(ThreadLocal, SharedLibrary) {
   t2.join();
 }
 
+#endif
 #endif
 
 namespace folly { namespace threadlocal_detail {