Prohibit linking unittest library into core mongodb binaries

XMLWordPrintableJSON

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

      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
            Reporter:
            Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: