[clang-tools-extra] r367279 - [clang-doc] Fix expected output in tests
Diego Astiazaran via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 29 17:07:34 PDT 2019
Author: diegoastiazaran
Date: Mon Jul 29 17:07:34 2019
New Revision: 367279
URL: http://llvm.org/viewvc/llvm-project?rev=367279&view=rev
Log:
[clang-doc] Fix expected output in tests
Removes conversion of html paths in output. These will always be in
posix-style paths.
Differential Revision: https://reviews.llvm.org/D65425
Modified:
clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp
Modified: clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp?rev=367279&r1=367278&r2=367279&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-doc/HTMLGeneratorTest.cpp Mon Jul 29 17:07:34 2019
@@ -171,10 +171,6 @@ TEST(HTMLGeneratorTest, emitFunctionHTML
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 @@ TEST(HTMLGeneratorTest, emitFunctionHTML
<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>
More information about the cfe-commits
mailing list