Author: ormris Date: Mon Nov 19 19:30:28 2018 New Revision: 347284 URL: http://llvm.org/viewvc/llvm-project?rev=347284&view=rev Log: Ensure FileManagerTest expects "\\" as path separator on Windows platforms
Modified: cfe/trunk/unittests/Basic/FileManagerTest.cpp Modified: cfe/trunk/unittests/Basic/FileManagerTest.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Basic/FileManagerTest.cpp?rev=347284&r1=347283&r2=347284&view=diff ============================================================================== --- cfe/trunk/unittests/Basic/FileManagerTest.cpp (original) +++ cfe/trunk/unittests/Basic/FileManagerTest.cpp Mon Nov 19 19:30:28 2018 @@ -240,7 +240,11 @@ TEST_F(FileManagerTest, getFileDefersOpe file = manager.getFile("/tmp/test", /*OpenFile=*/true); ASSERT_TRUE(file != nullptr); ASSERT_TRUE(file->isValid()); +#ifdef _WIN32 + EXPECT_EQ("/tmp\\test", file->tryGetRealPathName()); +#else EXPECT_EQ("/tmp/test", file->tryGetRealPathName()); +#endif // However we should never try to open a file previously opened as virtual. ASSERT_TRUE(manager.getVirtualFile("/tmp/testv", 5, 0)); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits