Disable a test of ThreadLocal across forks for Windows
[folly.git] / folly / test / ThreadLocalTest.cpp
index 7a3dab1def48fa92b5bc275f48dbae7e212ea60c..e836ef37d4290a4b2fe21f11a36a3e0f41494768 100644 (file)
 
 #include <folly/ThreadLocal.h>
 
+#ifndef _WIN32
 #include <dlfcn.h>
-#include <sys/types.h>
 #include <sys/wait.h>
+#endif
+
+#include <sys/types.h>
 
 #include <array>
 #include <atomic>
@@ -543,6 +546,7 @@ TEST(ThreadLocal, Fork) {
 }
 #endif
 
+#ifndef _WIN32
 struct HoldsOneTag2 {};
 
 TEST(ThreadLocal, Fork2) {
@@ -571,6 +575,7 @@ 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