#include <thread>
#include <folly/Singleton.h>
-#include <folly/Subprocess.h>
#include <folly/experimental/io/FsUtil.h>
#include <folly/io/async/EventBase.h>
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
#include <folly/test/SingletonTestStructs.h>
+#ifndef _MSC_VER
+#include <folly/Subprocess.h>
+#endif
+
#include <glog/logging.h>
#include <boost/thread/barrier.hpp>
vault.destroyInstances();
}
+#ifndef _MSC_VER
+// Subprocess isn't currently supported under MSVC.
TEST(Singleton, DoubleRegistrationLogging) {
const auto basename = "singleton_double_registration";
const auto sub = fs::executable_path().remove_filename() / basename;
EXPECT_EQ(SIGABRT, res.killSignal());
EXPECT_THAT(err, testing::StartsWith("Double registration of singletons"));
}
+#endif
// Singleton using a non default constructor test/example:
struct X {