Disable hugeexpr1 test under JitStress modes
authorRuss Keldorph <Russ.Keldorph@microsoft.com>
Fri, 6 Jan 2017 17:00:17 +0000 (09:00 -0800)
committerRuss Keldorph <Russ.Keldorph@microsoft.com>
Fri, 6 Jan 2017 21:14:24 +0000 (13:14 -0800)
This test runs out of memory on x86 when its huge expressions combine with
STRESS_CLONE_EXPR.  In this case, the "OptimizationSensitive" label isn't ideal,
but the meaning is what we need: don't run this under JitStress modes.
This is disabled at build time for x86, which means that if x64-built tests are
run on other architectures, e.g. ARM or ARM64, this change won't take effect.

Commit migrated from https://github.com/dotnet/coreclr/commit/becbc328e6d300b5aec7fdfdb055ec378d495bca

src/coreclr/tests/src/JIT/jit64/opt/cse/hugeexpr1.csproj

index 0886950..3ad363f 100644 (file)
@@ -29,6 +29,8 @@
   <PropertyGroup>
     <DebugType>Full</DebugType>
     <Optimize>True</Optimize>
+    <!-- This test is very resource heavy and doesn't play well with some JitStress modes, especially when memory is limited -->
+    <JitOptimizationSensitive Condition="'$(Platform)' == 'x86'">true</JitOptimizationSensitive>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="hugeexpr1.cs" />
@@ -43,4 +45,4 @@
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
   <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
   </PropertyGroup>
-</Project>
\ No newline at end of file
+</Project>