summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/FileManagerTest.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-06-24 14:10:29 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-06-24 14:10:29 +0000
commit67677898d3b14fd65a6ef4e213ac703c5b0a2cbc (patch)
tree0da4c2e3b0d9e1f63afeb0c29c336e429797e9e2 /clang/unittests/Basic/FileManagerTest.cpp
parentad0cdd56062d60aff5523f28e965855b101c66b2 (diff)
downloadbcm5719-llvm-67677898d3b14fd65a6ef4e213ac703c5b0a2cbc.tar.gz
bcm5719-llvm-67677898d3b14fd65a6ef4e213ac703c5b0a2cbc.zip
unittests/Basic/FileManagerTest.cpp: Unbreak Win32, mingw and msvc.
LLVM_ON_WIN32 is defined in llvm/Config/config.h. IMO, it might be enough with _WIN32 in most cases, LLVM_ON_xxx could be deprecated. llvm-svn: 133794
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
-rw-r--r--clang/unittests/Basic/FileManagerTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/Basic/FileManagerTest.cpp b/clang/unittests/Basic/FileManagerTest.cpp
index 80727790d03..a725a437f6b 100644
--- a/clang/unittests/Basic/FileManagerTest.cpp
+++ b/clang/unittests/Basic/FileManagerTest.cpp
@@ -30,7 +30,7 @@ private:
void InjectFileOrDirectory(const char *Path, ino_t INode, bool IsFile) {
struct stat statBuf = {};
statBuf.st_dev = 1;
-#ifndef LLVM_ON_WIN32 // struct stat has no st_ino field on Windows.
+#ifndef _WIN32 // struct stat has no st_ino field on Windows.
statBuf.st_ino = INode;
#endif
statBuf.st_mode = IsFile ? (0777 | S_IFREG) // a regular file
@@ -187,7 +187,7 @@ TEST_F(FileManagerTest, getFileReturnsNULLForNonexistentFile) {
// The following tests apply to Unix-like system only.
-#ifndef LLVM_ON_WIN32
+#ifndef _WIN32
// getFile() returns the same FileEntry for real files that are aliases.
TEST_F(FileManagerTest, getFileReturnsSameFileEntryForAliasedRealFiles) {
@@ -217,6 +217,6 @@ TEST_F(FileManagerTest, getFileReturnsSameFileEntryForAliasedVirtualFiles) {
EXPECT_EQ(manager.getFile("abc/foo.cpp"), manager.getFile("abc/bar.cpp"));
}
-#endif // !LLVM_ON_WIN32
+#endif // !_WIN32
} // anonymous namespace
OpenPOWER on IntegriCloud