Skip to content

Add support for VSMac unit test synchronization context#27475

Merged
jasonmalinowski merged 2 commits intodotnet:masterfrom
Therzok:xwt-synchronization-context
Jun 6, 2018
Merged

Add support for VSMac unit test synchronization context#27475
jasonmalinowski merged 2 commits intodotnet:masterfrom
Therzok:xwt-synchronization-context

Conversation

@Therzok
Copy link
Copy Markdown
Contributor

@Therzok Therzok commented Jun 5, 2018

Ask Mode template not completed

Customer scenario

Customer not affected.

Bugs this fixes

Workarounds, if any

A lot of refactoring in VSMac test suites to get this done. This is a workaround to move us forward until we properly layer the integration test suites.

Risk

Just adds new enum values that allow Xwt-based synchronization context to function with default data.

Performance impact

None

Is this a regression from a previous update?

No

Root cause analysis

We weren't hitting into ForegroundThreadData needed to be initialized in parts of VSMac test suite

How was the bug found?

Test documentation updated?

None needed.

Therzok added 2 commits June 5, 2018 09:14
This synchronization context is used by MD's test suite - it is
based on the idea that the IDE is not yet initialized so headless
tests can run, so it just routes the main synchronization context
calls into the native OS' main thread implementation
@Therzok Therzok requested a review from a team as a code owner June 5, 2018 16:20
@jasonmalinowski jasonmalinowski self-assigned this Jun 5, 2018
@jinujoseph jinujoseph added Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. labels Jun 6, 2018
@jasonmalinowski
Copy link
Copy Markdown
Member

Test only change, so M2 approval not needed here.

@jasonmalinowski jasonmalinowski merged commit c62e7e0 into dotnet:master Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants