Invalid regex passed to DEATH_TEST_REGEX causes test to pass

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • Fully Compatible
    • Programmability 2025-01-06, Programmability 2025-01-20
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      For example:

      DEATH_TEST_REGEX(ScopedDebugInfo, TassertAndUassertDuringLogging, "?sasdf;kadgjlkkdsfagfda")

      It doesn't make sense to have a regex where ? isn't preceded by anything. However, in this case, the test would pass because we seemingly match everything.

       

      CC ryan.berryhill@mongodb.com 

              Assignee:
              Ryan Berryhill
              Reporter:
              Militsa Sotirova
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: