Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove compiler specific feature test macro tests #752

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

JonCavesMSFT
Copy link
Member

This PR removes compiler specific feature test macro tests: these tests have been moved to the C++ compiler test suite.

@JonCavesMSFT JonCavesMSFT requested a review from a team as a code owner April 26, 2020 22:46
@msftclas
Copy link

msftclas commented Apr 26, 2020

CLA assistant check
All CLA requirements met.

@StephanTLavavej
Copy link
Member

Hi Jonathan! I see that you signed the CLA so the bot is happy. As a Microsoft employee, you should link your GitHub account to your Microsoft alias and then join the Microsoft organization; the instructions are at https://docs.opensource.microsoft.com/tools/github/accounts/linking.html (Microsoft-internal link). You need to have 2FA set up for GitHub; after that, the process is easy and fast.

After following those steps, Microsoft should appear in the lower-left Organizations section of your profile https://github.com/JonCavesMSFT ; you can see mine at https://github.com/StephanTLavavej for reference.

@StephanTLavavej StephanTLavavej added the test Related to test code label Apr 26, 2020
@StephanTLavavej
Copy link
Member

You're now displayed as a member of the Microsoft organization - yay! 😺

@StephanTLavavej
Copy link
Member

For anyone reading this PR, the backstory is: the STL's test suite is for testing the STL, not testing compilers (directly). When I took the unusual step of implementing feature-test macros in both the STL and the MSVC compiler (except for __has_cpp_attribute), I added test coverage to the STL's test suite as I was familiar with how it worked, even though it's not really the right place to test the compiler. I was also able to test Clang and EDG this way, and report several bugs to their maintainers.

However, moving STL development to GitHub has made this compiler test coverage problematic. Now, when the MSVC compiler implements a C++20 feature with a feature-test macro, we have to deal with the fact that the tests on GitHub use the latest public VS Preview, which contains compiler sources that are older than the freshly-built compiler used to run the tests in our Microsoft-internal compiler/STL repo.

By moving the compiler feature-test macro tests alongside the other compiler tests, we'll avoid this maintenance headache.

Copy link
Member

@CaseyCarter CaseyCarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - we'll merge this when we see MSVC-PR-244874 merge.

@CaseyCarter CaseyCarter merged commit 852a308 into microsoft:master Apr 27, 2020
@CaseyCarter
Copy link
Member

Congratulations on your first open-source contribution to the STL!

@JonCavesMSFT
Copy link
Member Author

Congratulations on your first open-source contribution to the STL!

s/to the STL// :)

CaseyCarter pushed a commit to CaseyCarter/STL that referenced this pull request Apr 28, 2020
Compilers should test their own feature-test macros so the STL need not do so.
@StephanTLavavej StephanTLavavej mentioned this pull request Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Related to test code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants