Skip to content

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
Contributor

@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
Contributor

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