Switch gtest to re2, adjust related tests (#2183)

See https://github.com/google/googletest/blob/main/docs/advanced.md#regular-expression-syntax for gtest regex notes.

Add framework suffix handling for includes because of a dep being triggered on macos.
This commit is contained in:
Jon Ross-Perkins
2022-09-15 08:19:52 -07:00
committed by GitHub
parent bfcab23795
commit c25a2b23d2
4 changed files with 24 additions and 8 deletions
+2 -3
View File
@@ -12,11 +12,10 @@ namespace {
TEST(CheckTest, CheckTrue) { CARBON_CHECK(true); }
TEST(CheckTest, CheckFalse) {
// TODO: figure out why we can't use \\d+ instead of .+ in these patterns.
ASSERT_DEATH({ CARBON_CHECK(false); },
"Stack trace:\n"
".+\n"
"CHECK failure at common/check_test.cpp:.+: false\n");
"(.|\n)+\n"
"CHECK failure at common/check_test.cpp:\\d+: false\n");
}
TEST(CheckTest, CheckTrueCallbackNotUsed) {