[clang] 242649c - [Syntax] Show input code on tests failures. NFC

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 5 07:26:44 PST 2019


Author: Ilya Biryukov
Date: 2019-12-05T16:25:35+01:00
New Revision: 242649c17c5b11bcc788b6f69bd3eed44cfd3d79

URL: https://github.com/llvm/llvm-project/commit/242649c17c5b11bcc788b6f69bd3eed44cfd3d79
DIFF: https://github.com/llvm/llvm-project/commit/242649c17c5b11bcc788b6f69bd3eed44cfd3d79.diff

LOG: [Syntax] Show input code on tests failures. NFC

Added: 
    

Modified: 
    clang/unittests/Tooling/Syntax/TreeTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Tooling/Syntax/TreeTest.cpp b/clang/unittests/Tooling/Syntax/TreeTest.cpp
index 3d30a074ddd8..98b895a5dd67 100644
--- a/clang/unittests/Tooling/Syntax/TreeTest.cpp
+++ b/clang/unittests/Tooling/Syntax/TreeTest.cpp
@@ -515,6 +515,8 @@ void foo() {
   )txt"}};
 
   for (const auto &T : Cases) {
+    SCOPED_TRACE(T.first);
+
     auto *Root = buildTree(T.first);
     std::string Expected = llvm::StringRef(T.second).trim().str();
     std::string Actual = llvm::StringRef(Root->dump(*Arena)).trim();


        


More information about the cfe-commits mailing list