Skip to content

Commit

Permalink
fix abort_test for limited Windows regex. Refs mesonbuild/wrapdb#1611
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 662785270
  • Loading branch information
jan-wassenberg authored and copybara-github committed Aug 14, 2024
1 parent 023b24a commit 06298b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hwy/abort_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "hwy/abort.h"

#include <stdio.h>

#include <string>

#include "hwy/base.h"
Expand All @@ -28,7 +30,7 @@ TEST(AbortDeathTest, AbortDefault) {

TEST(AbortDeathTest, AbortOverride) {
std::string expected =
std::string("Test Abort from [0-9]+ of ") + GetBaseName(__FILE__);
std::string("Test Abort from \\d+ of ") + GetBaseName(__FILE__);

ASSERT_DEATH(
{
Expand All @@ -43,7 +45,7 @@ TEST(AbortDeathTest, AbortOverride) {
},
expected);
}
#endif
#endif // GTEST_HAS_DEATH_TEST

TEST(AbortTest, AbortOverrideChain) {
AbortFunc FirstHandler = [](const char* file, int line,
Expand Down

0 comments on commit 06298b1

Please sign in to comment.