From dd7ee81ec3ea533296b86094dd56dce75063de2e Mon Sep 17 00:00:00 2001 From: Diego Astiazaran Date: Tue, 30 Jul 2019 00:07:34 +0000 Subject: [PATCH] [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 llvm-svn: 367279 --- clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp b/clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp index 454ab7d..9fe7542 100644 --- a/clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp +++ b/clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp @@ -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( @@ -182,11 +178,9 @@ TEST(HTMLGeneratorTest, emitFunctionHTML) {

f

- float + float f( - int + int P)

Defined at line 10 of test.cpp

-- 2.7.4