diff options
author | Reo Kimura <reo.kimura@mongodb.com> | 2022-10-13 20:52:49 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-13 22:22:10 +0000 |
commit | 0d12c83b9b4c3aca1630fc6c41de2f17e4b09ab8 (patch) | |
tree | 343810e528340daa6277180d7ac85dd938fbbca8 /buildscripts | |
parent | b2f02f70630e0039b4803b1fa8c55a7a7512274a (diff) | |
download | mongo-0d12c83b9b4c3aca1630fc6c41de2f17e4b09ab8.tar.gz |
SERVER-69926 errorcodes.py doesn't detect duplicate errors in MONGO_UNREACHABLE_TASSERT
Diffstat (limited to 'buildscripts')
-rwxr-xr-x | buildscripts/errorcodes.py | 1 | ||||
-rw-r--r-- | buildscripts/tests/data/errorcodes/regex_matching/regex_matching.cpp | 1 | ||||
-rw-r--r-- | buildscripts/tests/test_errorcodes.py | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/buildscripts/errorcodes.py b/buildscripts/errorcodes.py index d4a2698b2ea..0aabaac16af 100755 --- a/buildscripts/errorcodes.py +++ b/buildscripts/errorcodes.py @@ -43,6 +43,7 @@ _CODE_PATTERNS = [ r"(?:StatusOK)?" r"(?:WithContext)?" r"\s*\(", + r"MONGO_UNREACHABLE_TASSERT\(", # DBException and AssertionException constructors r"(?:DB|Assertion)Exception\s*[({]", # Calls to all LOGV2* variants diff --git a/buildscripts/tests/data/errorcodes/regex_matching/regex_matching.cpp b/buildscripts/tests/data/errorcodes/regex_matching/regex_matching.cpp index b45042b4b0f..24b0b42fed3 100644 --- a/buildscripts/tests/data/errorcodes/regex_matching/regex_matching.cpp +++ b/buildscripts/tests/data/errorcodes/regex_matching/regex_matching.cpp @@ -32,3 +32,4 @@ iassert(27, "words"); iasserted(28, "words"); iassertNoTrace(29, "words"); iassertedNoTrace(30, "words"); +MONGO_UNREACHABLE_TASSERT(31); diff --git a/buildscripts/tests/test_errorcodes.py b/buildscripts/tests/test_errorcodes.py index d14aa505a92..17c102454b5 100644 --- a/buildscripts/tests/test_errorcodes.py +++ b/buildscripts/tests/test_errorcodes.py @@ -26,7 +26,7 @@ class TestErrorcodes(unittest.TestCase): captured_error_codes.append(code) errorcodes.parse_source_files(accumulate_files, TESTDATA_DIR + 'regex_matching/') - self.assertEqual(30, len(captured_error_codes)) + self.assertEqual(31, len(captured_error_codes)) def test_dup_checking(self): """Test dup checking.""" |