mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 18:20:29 +00: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:
1 parent
bfcab23795
commit
c25a2b23d2
4 files changed
+24
-8
No files matched your search
@@ -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