From 30ca2828a61dbef54fb21392175a13af28805f22 Mon Sep 17 00:00:00 2001 From: Diego Astiazaran Date: Thu, 25 Jul 2019 23:22:55 +0000 Subject: [PATCH] [clang-doc] Fix failing tests on Windows Tests on Windows were failing due to path separator differences. '/' was being used as separator in the expected output, paths in expected output are now changed to their native form before comparing them to the actual output. Differential Revision: https://reviews.llvm.org/D65306 llvm-svn: 367074 --- clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp b/clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp index 445a2ef..81fcdb1 100644 --- a/clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp +++ b/clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp @@ -114,10 +114,15 @@ TEST(HTMLGeneratorTest, emitRecordHTML) { llvm::sys::path::native("../../../path/to/F.html", PathToF); SmallString<16> PathToInt; llvm::sys::path::native("../int.html", PathToInt); + SmallString<16> PathToSylesheet; + llvm::sys::path::native("../../../clang-doc-default-stylesheet.css", + PathToSylesheet); std::string Expected = R"raw( class r - +

class r

Defined at line 10 of test.cpp

-- 2.7.4