[clang] 78a6f59 - [RGT] Use GTEST_SKIP instead of just returning

Paul Robinson via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 8 12:20:28 PDT 2022


Author: Paul Robinson
Date: 2022-04-08T12:20:20-07:00
New Revision: 78a6f59c2cef58c01a13ba4e587b30cd1dbd6475

URL: https://github.com/llvm/llvm-project/commit/78a6f59c2cef58c01a13ba4e587b30cd1dbd6475
DIFF: https://github.com/llvm/llvm-project/commit/78a6f59c2cef58c01a13ba4e587b30cd1dbd6475.diff

LOG: [RGT] Use GTEST_SKIP instead of just returning

Added: 
    

Modified: 
    clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp b/clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp
index 8e23487840919..4eaa1636d230e 100644
--- a/clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp
+++ b/clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp
@@ -88,7 +88,7 @@ TEST(RecursiveASTVisitor, VisitsLambdaExprAndImplicitClass) {
 
 TEST(RecursiveASTVisitor, VisitsAttributedLambdaExpr) {
   if (llvm::Triple(llvm::sys::getDefaultTargetTriple()).isPS4())
-    return; // PS4 does not support fastcall.
+    GTEST_SKIP(); // PS4 does not support fastcall.
   LambdaExprVisitor Visitor;
   Visitor.ExpectMatch("", 1, 12);
   EXPECT_TRUE(Visitor.runOver(


        


More information about the cfe-commits mailing list