Index: unittests/clang-move/ClangMoveTests.cpp =================================================================== --- unittests/clang-move/ClangMoveTests.cpp +++ unittests/clang-move/ClangMoveTests.cpp @@ -239,8 +239,10 @@ // The Key is file name, value is the new code after moving the class. std::map Results; for (const auto &It : FileToReplacements) { - StringRef FilePath = It.first; - Results[FilePath] = Context.getRewrittenText(FileToFileID[FilePath]); + // The path may come out as "./foo.h", normalize to "foo.h". + SmallString<32> FilePath (It.first); + llvm::sys::path::remove_dots(FilePath); + Results[FilePath.str().str()] = Context.getRewrittenText(FileToFileID[FilePath]); } return Results; }