Skip to content

Commit

Permalink
Disable binder tracing test under gcstress (#100798)
Browse files Browse the repository at this point in the history
  • Loading branch information
elinor-fung committed Apr 9, 2024
1 parent e6c1a49 commit 89ab2a9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- TestAssemblyLoadContext.Load called from the finalizer -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
<!-- Dynamic assembly loads -->
<NativeAotIncompatible>true</NativeAotIncompatible>
</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,10 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Test creates non-collectible AssemblyLoadContext -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
<!-- Dynamic assembly loads -->
<NativeAotIncompatible>true</NativeAotIncompatible>
<RequiresProcessIsolation>true</RequiresProcessIsolation>
<IlasmRoundTripIncompatible>true</IlasmRoundTripIncompatible>
</PropertyGroup>
<ItemGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/tests/Loader/binding/tracing/BinderTracingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ public static bool RunAllTests()
foreach (var method in methods)
{
BinderTestAttribute attribute = method.GetCustomAttribute<BinderTestAttribute>();
if (attribute.Isolate && Environment.GetEnvironmentVariable("DOTNET_GCStress") != null)
continue;

bool success = attribute.Isolate
? RunTestInSeparateProcess(method)
: RunSingleTest(method);
Expand Down
6 changes: 6 additions & 0 deletions src/tests/Loader/binding/tracing/BinderTracingTest.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<!-- Requires explicit Main as it implements command-line parameters for local testing purposes. -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
<ReferenceXUnitWrapperGenerator>false</ReferenceXUnitWrapperGenerator>
<!-- Test creates non-collectible AssemblyLoadContext -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
<!-- Dynamic assembly loads -->
<NativeAotIncompatible>true</NativeAotIncompatible>
<!-- Tracing tests routinely time out with gcstress -->
<GCStressIncompatible>true</GCStressIncompatible>
</PropertyGroup>
<ItemGroup>
<Compile Include="BinderTracingTest.cs" />
Expand Down

0 comments on commit 89ab2a9

Please sign in to comment.