Skip to content

Commit

Permalink
Update testing/file_test/file_test_base.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
  • Loading branch information
jonmeow and chandlerc authored Sep 6, 2024
1 parent 854025a commit 0494117
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testing/file_test/file_test_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]]";
Expand Down

0 comments on commit 0494117

Please sign in to comment.