Commit e21b7273 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 6

Disable a test of ThreadLocal across forks for Windows

Summary: We don't have `fork()` to begin with, so disable the test and the includes it required if we're compiling on Windows.

Reviewed By: yfeldblum

Differential Revision: D3600600

fbshipit-source-id: 5399705753b456139105f4ac757190e1ba1765f2
parent e28213bf
......@@ -16,9 +16,12 @@
#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
......
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