This revision was automatically updated to reflect the committed changes. Closed by commit rL367279: [clang-doc] Fix expected output in tests (authored by DiegoAstiazaran, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits.
Changed prior to commit: https://reviews.llvm.org/D65425?vs=212248&id=212255#toc Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65425/new/ https://reviews.llvm.org/D65425 Files: clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp Index: clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp =================================================================== --- clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp +++ clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp @@ -171,10 +171,6 @@ ClangDocContext CDCtx = getClangDocContext(); auto Err = G->generateDocForInfo(&I, Actual, CDCtx); assert(!Err); - SmallString<16> PathToFloat; - llvm::sys::path::native("path/to/float.html", PathToFloat); - SmallString<16> PathToInt; - llvm::sys::path::native("path/to/int.html", PathToInt); std::string Expected = R"raw(<!DOCTYPE html> <meta charset="utf-8"/> <title></title> @@ -182,11 +178,9 @@ <div> <h3>f</h3> <p> - <a href=")raw" + std::string(PathToFloat.str()) + - R"raw(">float</a> + <a href="path/to/float.html">float</a> f( - <a href=")raw" + std::string(PathToInt.str()) + - R"raw(">int</a> + <a href="path/to/int.html">int</a> P) </p> <p>Defined at line 10 of test.cpp</p>
Index: clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp =================================================================== --- clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp +++ clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp @@ -171,10 +171,6 @@ ClangDocContext CDCtx = getClangDocContext(); auto Err = G->generateDocForInfo(&I, Actual, CDCtx); assert(!Err); - SmallString<16> PathToFloat; - llvm::sys::path::native("path/to/float.html", PathToFloat); - SmallString<16> PathToInt; - llvm::sys::path::native("path/to/int.html", PathToInt); std::string Expected = R"raw(<!DOCTYPE html> <meta charset="utf-8"/> <title></title> @@ -182,11 +178,9 @@ <div> <h3>f</h3> <p> - <a href=")raw" + std::string(PathToFloat.str()) + - R"raw(">float</a> + <a href="path/to/float.html">float</a> f( - <a href=")raw" + std::string(PathToInt.str()) + - R"raw(">int</a> + <a href="path/to/int.html">int</a> P) </p> <p>Defined at line 10 of test.cpp</p>
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits