Author: rafael Date: Mon Oct 5 15:20:50 2015 New Revision: 249346 URL: http://llvm.org/viewvc/llvm-project?rev=249346&view=rev Log: Fix the MSVC build.
No idea what asymmetry MSVC is findind. Modified: cfe/trunk/unittests/Basic/VirtualFileSystemTest.cpp Modified: cfe/trunk/unittests/Basic/VirtualFileSystemTest.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Basic/VirtualFileSystemTest.cpp?rev=249346&r1=249345&r2=249346&view=diff ============================================================================== --- cfe/trunk/unittests/Basic/VirtualFileSystemTest.cpp (original) +++ cfe/trunk/unittests/Basic/VirtualFileSystemTest.cpp Mon Oct 5 15:20:50 2015 @@ -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, OpenFileF 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) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits