Skip to content

Move the macro for MSVC-internal testing #1589

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

Merged
merged 1 commit into from
Jan 26, 2021

Conversation

StephanTLavavej
Copy link
Member

When testing Standard Library Header Units in #1388, I arranged for the MSVC-internal test harness to pass /DMSVC_INTERNAL_TESTING, so we could activate portions of the test as soon as MSVC compiler bugs were fixed, before removing workarounds entirely (after the fixed compiler ships in a public VS Preview). That's been enormously successful.

Now that @miscco and @mnatsuhara are working on constexpr containers (#1407, #1502, #1546) and are discovering Super Awesome Compiler Bugs everywhere, this macro technique will be useful in other tests.

Accordingly, this PR removes the macro definition from P1502R1_standard_library_header_units/custombuild.pl, and we're going to define it for the entire std test suite in an MSVC-internal file, so any std test can sense it.

To be clear: This has no effect for contributors building and testing the repo with the public VS Preview. Only when a compiler bug is encountered, worked around, and eventually fixed by the compiler team, will it be recommended to guard the workaround with #ifdef MSVC_INTERNAL_TESTING. That will prevent the compiler from regressing before the fix ships.

@StephanTLavavej StephanTLavavej added the test Related to test code label Jan 26, 2021
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner January 26, 2021 02:48
@StephanTLavavej StephanTLavavej self-assigned this Jan 26, 2021
@StephanTLavavej StephanTLavavej merged commit 4a8ffcd into microsoft:master Jan 26, 2021
@StephanTLavavej StephanTLavavej deleted the internal_testing branch January 26, 2021 07:41
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.

3 participants