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

Prohibit linking unittest library into core mongodb binaries

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Build
    • None
    • Fully Compatible
    • Dev Platform 2020-11-16

    Description

      It should be an error detected at build-time to link the unittest library into the mongo shell, mongod or mongos.

      I was thinking that we could add a symbol to the unittest library, and the same symbol to a library called "unittest_forbidden", and link "unittest_forbidden"
      into mongo, mongos and mongod. That would at least achieve the goal.

      Attachments

        Activity

          People

            daniel.moody@mongodb.com Daniel Moody
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: