[PATCH] D65306: [clang-doc] Fix failing tests on Windows
This revision was automatically updated to reflect the committed changes. Closed by commit rL367074: [clang-doc] Fix failing tests on Windows (authored by DiegoAstiazaran, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D65306?vs=211848&id=211854#toc Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65306/new/ https://reviews.llvm.org/D65306 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 @@ -114,10 +114,15 @@ 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 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 @@ -114,10 +114,15 @@ 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 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D65306: [clang-doc] Fix failing tests on Windows
DiegoAstiazaran created this revision. DiegoAstiazaran added a reviewer: juliehockett. DiegoAstiazaran added a project: clang-tools-extra. juliehockett accepted this revision. juliehockett added a comment. This revision is now accepted and ready to land. Make sure you update the other stylesheet patch, as well, before landing that. 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. https://reviews.llvm.org/D65306 Files: clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp Index: clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp === --- clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp +++ clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp @@ -114,10 +114,15 @@ 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 Index: clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp === --- clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp +++ clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp @@ -114,10 +114,15 @@ 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 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D65306: [clang-doc] Fix failing tests on Windows
juliehockett accepted this revision. juliehockett added a comment. This revision is now accepted and ready to land. Make sure you update the other stylesheet patch, as well, before landing that. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65306/new/ https://reviews.llvm.org/D65306 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits