mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user