Fix COM test failures on Windows Nano Server (#57148)
authorJeremy Koritzinsky <jekoritz@microsoft.com>
Tue, 10 Aug 2021 19:28:59 +0000 (14:28 -0500)
committerGitHub <noreply@github.com>
Tue, 10 Aug 2021 19:28:59 +0000 (19:28 +0000)
commitb7de2624489f218ae64148ae74e9440d0980e894
tree52c50ec9f21fe4a65379ef2d5d63a896566a9ba9
parent302ad868e9138f6a4f2c86f7d3f1860c49b07ffa
Fix COM test failures on Windows Nano Server (#57148)

* Disable ComWrappers activation tests when running on Windows Nano Server since they require reg-free COM.

* Run the test on a separate STA thread so we can get far enough in Main to detect running on nano server before we use the STA.
src/tests/Interop/COM/ComWrappers/GlobalInstance/GlobalInstance.Marshalling.cs
src/tests/Interop/COM/ComWrappers/GlobalInstance/GlobalInstance.TrackerSupport.cs
src/tests/Interop/COM/NETClients/Lifetime/Program.cs