From 018072a081f3598bf26bb903e2b7ed9eb254e343 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 5 Oct 2015 20:20:50 +0000 Subject: [PATCH] Fix the MSVC build. No idea what asymmetry MSVC is findind. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249346 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Basic/VirtualFileSystemTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unittests/Basic/VirtualFileSystemTest.cpp b/unittests/Basic/VirtualFileSystemTest.cpp index 5362e59943..4d4522a85b 100644 --- a/unittests/Basic/VirtualFileSystemTest.cpp +++ b/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) { -- 2.40.0