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

Prohibit linking unittest library into core mongodb binaries

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible
    • Dev Platform 2020-11-16

      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.

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

              Created:
              Updated:
              Resolved: