diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-03-12 16:07:46 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-03-12 16:07:46 +0000 |
commit | 501eadb42919f8312a55d78455a44b39e16762ed (patch) | |
tree | 14b5f66134c9d25db988268b6d8a3f663a16ea86 /clang/unittests/Basic/FileManagerTest.cpp | |
parent | 3e699d419eebdd287e34c22d8abffa237fc1bf33 (diff) | |
download | bcm5719-llvm-501eadb42919f8312a55d78455a44b39e16762ed.tar.gz bcm5719-llvm-501eadb42919f8312a55d78455a44b39e16762ed.zip |
Check for LLVM_ON_WIN32 instead of _WIN32.
This is a follow-up to r203624 to address Anton's comment.
llvm-svn: 203668
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
-rw-r--r-- | clang/unittests/Basic/FileManagerTest.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/unittests/Basic/FileManagerTest.cpp b/clang/unittests/Basic/FileManagerTest.cpp index a9fd466a02b..9df85329a4d 100644 --- a/clang/unittests/Basic/FileManagerTest.cpp +++ b/clang/unittests/Basic/FileManagerTest.cpp @@ -11,6 +11,7 @@ #include "clang/Basic/FileSystemOptions.h" #include "clang/Basic/FileSystemStatCache.h" #include "gtest/gtest.h" +#include "llvm/Config/config.h" using namespace llvm; using namespace clang; @@ -126,7 +127,7 @@ TEST_F(FileManagerTest, getFileReturnsValidFileEntryForExistingRealFile) { statCache->InjectDirectory("/tmp", 42); statCache->InjectFile("/tmp/test", 43); -#ifdef _WIN32 +#ifdef LLVM_ON_WIN32 const char *DirName = "C:."; const char *FileName = "C:test"; statCache->InjectDirectory(DirName, 44); @@ -143,7 +144,7 @@ TEST_F(FileManagerTest, getFileReturnsValidFileEntryForExistingRealFile) { ASSERT_TRUE(dir != NULL); EXPECT_STREQ("/tmp", dir->getName()); -#ifdef _WIN32 +#ifdef LLVM_ON_WIN32 file = manager.getFile(FileName); ASSERT_TRUE(file != NULL); @@ -204,7 +205,7 @@ TEST_F(FileManagerTest, getFileReturnsNULLForNonexistentFile) { // The following tests apply to Unix-like system only. -#ifndef _WIN32 +#ifndef LLVM_ON_WIN32 // getFile() returns the same FileEntry for real files that are aliases. TEST_F(FileManagerTest, getFileReturnsSameFileEntryForAliasedRealFiles) { @@ -234,6 +235,6 @@ TEST_F(FileManagerTest, getFileReturnsSameFileEntryForAliasedVirtualFiles) { EXPECT_EQ(manager.getFile("abc/foo.cpp"), manager.getFile("abc/bar.cpp")); } -#endif // !_WIN32 +#endif // !LLVM_ON_WIN32 } // anonymous namespace |