Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-98625

Invalid regex passed to DEATH_TEST_REGEX causes test to pass

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Ryan Berryhill
            Reporter:
            militsa.sotirova@mongodb.com Militsa Sotirova
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: