[SERVER-41626] Correct illegal names in unittest macros Created: 10/Jun/19  Updated: 29/Oct/23  Resolved: 13/Jun/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.14

Type: Improvement Priority: Major - P3
Reporter: ADAM Martin (Inactive) Assignee: ADAM Martin (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Dev Tools 2019-06-17
Participants:

 Comments   
Comment by Githook User [ 13/Jun/19 ]

Author:

{'name': 'ADAM David Alan Martin', 'email': 'adam.martin@10gen.com', 'username': 'adamlsd'}

Message: SERVER-41626 Fix lint.
Branch: master
https://github.com/mongodb/mongo/commit/750b1a60989052dffd4f7cb3c3077b85f57f914c

Comment by Githook User [ 13/Jun/19 ]

Author:

{'name': 'ADAM David Alan Martin', 'email': 'adam.martin@10gen.com', 'username': 'adamlsd'}

Message: SERVER-41626 Correct use of illegal names in macros for unittests

Names which match either of these RegExes are reserved for C++ implementations:

  • "__"
  • "^_[A-Z]"

The unittest macros should not have these names, nor should they have the
capacity to generate these names by token composition.
Branch: master
https://github.com/mongodb/mongo/commit/4784a3f803e5e9885d6572f97751b218e1d8f614

Generated at Thu Feb 08 04:58:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.