Skip to content

Commit a01a7d8

Browse files
Prevent DynamicOptimization test from running with DOTNET_ForceRelocs=1 (#114578)
ForceRelocs causes the JIT to re-JIT every function on x64, which causes the test to fail because it is counting JIT compilations. Simply force `DOTNET_ForceRelocs=0`.
1 parent 15d227c commit a01a7d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tests/profiler/dynamicoptimization/DynamicOptimization.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,8 @@
2323
<CMakeProjectReference Include="$(MSBuildThisFileDirectory)/../native/CMakeLists.txt" />
2424
<ProjectReference Include="../../tracing/eventpipe/common/eventpipe_common.csproj" />
2525
<ProjectReference Include="../../tracing/eventpipe/common/Microsoft.Diagnostics.NETCore.Client/Microsoft.Diagnostics.NETCore.Client.csproj" />
26+
27+
<!-- Test does not work with DOTNET_ForceRelocs=1 -->
28+
<CLRTestEnvironmentVariable Include="DOTNET_ForceRelocs" Value="0" />
2629
</ItemGroup>
2730
</Project>

0 commit comments

Comments
 (0)