Skip to content

Commit

Permalink
Merge pull request dotnet#35363 from janvorli/fix-unloadability-tests
Browse files Browse the repository at this point in the history
Fix failures in unloadability tests
  • Loading branch information
janvorli authored Apr 24, 2020
2 parents e0a27ec + 09c54dc commit a1aca9d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/coreclr/src/vm/class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ void EEClass::Destruct(MethodTable * pOwningMT)

#ifndef CROSSGEN_COMPILE

// Not expected to be called for array EEClass
_ASSERTE(!pOwningMT->IsArray());

#ifdef _DEBUG
_ASSERTE(!IsDestroyed());
SetDestroyed();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<OutputType>Exe</OutputType>
<!-- Test unsupported outside of windows -->
<TestUnsupportedOutsideWindows>true</TestUnsupportedOutsideWindows>
<!-- Native COM interfaces left alive at the test exit -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
<DisableProjectBuild Condition="'$(TargetsWindows)' != 'true'">true</DisableProjectBuild>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- TestAssemblyLoadContext.Load called from the finalizer -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
</PropertyGroup>
<ItemGroup>
<Compile Include="BinderTracingTest.Basic.cs" />
<Compile Include="BinderTracingTest.DefaultProbing.cs" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Test creates non-collectible AssemblyLoadContext -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
</PropertyGroup>
<ItemGroup>
<Compile Include="BinderTracingTest.EventHandlers.cs" />
<Compile Include="BinderTracingTest.ResolutionFlow.cs" />
Expand Down

0 comments on commit a1aca9d

Please sign in to comment.