llvm.org GIT mirror llvm / 34be804
Make UnitTestMain/TestMain.cpp free from llvm/Config/config.h. llvm/Config/config.h is unavailable outside of build tree. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241523 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 4 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
66 //
77 //===----------------------------------------------------------------------===//
88
9 #include "llvm/Config/config.h"
109 #include "llvm/Support/CommandLine.h"
1110 #include "llvm/Support/Signals.h"
1211 #include "gtest/gtest.h"
1312
1413
15 #if defined(LLVM_ON_WIN32)
14 #if defined(_WIN32)
1615 # include
1716 # if defined(_MSC_VER)
1817 # include
2928 // Make it easy for a test to re-execute itself by saving argv[0].
3029 TestMainArgv0 = argv[0];
3130
32 # if defined(LLVM_ON_WIN32)
31 # if defined(_WIN32)
3332 // Disable all of the possible ways Windows conspires to make automated
3433 // testing impossible.
3534 ::SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);