From 049411718ff96ee6d48937f8810883ecd3a3a54e Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Fri, 6 Sep 2024 07:37:00 -0700 Subject: [PATCH] Update testing/file_test/file_test_base.cpp Co-authored-by: Chandler Carruth --- testing/file_test/file_test_base.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testing/file_test/file_test_base.cpp b/testing/file_test/file_test_base.cpp index 5153e288472f8..2d71544209442 100644 --- a/testing/file_test/file_test_base.cpp +++ b/testing/file_test/file_test_base.cpp @@ -486,8 +486,9 @@ static auto ReplaceContentKeywords(llvm::StringRef filename, if (auto ext_dot = test_name.find("."); ext_dot != llvm::StringRef::npos) { test_name = test_name.substr(0, ext_dot); } - while (test_name.consume_front("fail_") || test_name.consume_front("todo_")) { - } + test_name.consume_front("todo_"); + test_name.consume_front("fail_"); + test_name.consume_front("todo_"); while (keyword_pos != std::string::npos) { static constexpr llvm::StringLiteral TestName = "[[@TEST_NAME]]";