summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-10-05 20:20:50 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-10-05 20:20:50 +0000
commitb7ab187a5c77e877519cd9d2442add7294ee10e7 (patch)
treeddaf8eff1f5eeb537dab445a9c474a4b278b16a9 /clang/unittests/Basic/VirtualFileSystemTest.cpp
parent1c2f0c439fea23655d6b2f367195ba8e4b8bdca8 (diff)
downloadbcm5719-llvm-b7ab187a5c77e877519cd9d2442add7294ee10e7.tar.gz
bcm5719-llvm-b7ab187a5c77e877519cd9d2442add7294ee10e7.zip
Fix the MSVC build.
No idea what asymmetry MSVC is findind. llvm-svn: 249346
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
-rw-r--r--clang/unittests/Basic/VirtualFileSystemTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/unittests/Basic/VirtualFileSystemTest.cpp b/clang/unittests/Basic/VirtualFileSystemTest.cpp
index 5362e599431..4d4522a85b4 100644
--- a/clang/unittests/Basic/VirtualFileSystemTest.cpp
+++ b/clang/unittests/Basic/VirtualFileSystemTest.cpp
@@ -528,9 +528,9 @@ protected:
TEST_F(InMemoryFileSystemTest, IsEmpty) {
auto Stat = FS.status("/a");
- ASSERT_EQ(errc::no_such_file_or_directory, Stat.getError()) << FS.toString();
+ ASSERT_EQ(Stat.getError(),errc::no_such_file_or_directory) << FS.toString();
Stat = FS.status("/");
- ASSERT_EQ(errc::no_such_file_or_directory, Stat.getError()) << FS.toString();
+ ASSERT_EQ(Stat.getError(), errc::no_such_file_or_directory) << FS.toString();
}
TEST_F(InMemoryFileSystemTest, WindowsPath) {
@@ -560,9 +560,9 @@ TEST_F(InMemoryFileSystemTest, OpenFileForRead) {
File = FS.openFileForRead("/a"); // Open again.
ASSERT_EQ("a", (*(*File)->getBuffer("ignored"))->getBuffer());
File = FS.openFileForRead("/");
- ASSERT_EQ(errc::invalid_argument, File.getError()) << FS.toString();
+ ASSERT_EQ(File.getError(), errc::invalid_argument) << FS.toString();
File = FS.openFileForRead("/b");
- ASSERT_EQ(errc::no_such_file_or_directory, File.getError()) << FS.toString();
+ ASSERT_EQ(File.getError(), errc::no_such_file_or_directory) << FS.toString();
}
TEST_F(InMemoryFileSystemTest, DirectoryIteration) {
OpenPOWER on IntegriCloud