diff options
author | Andy Ayers <andya@microsoft.com> | 2019-03-05 22:49:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 22:49:49 -0800 |
commit | 76abdef2f4e1d91c97581e0d5ec63d6edf3248c0 (patch) | |
tree | 745cee23199a0d423431769b4371b168f30ab0ef /tests | |
parent | 400b472f3333fd2a5371fcab7c34c2892b6324c6 (diff) | |
download | coreclr-76abdef2f4e1d91c97581e0d5ec63d6edf3248c0.tar.gz coreclr-76abdef2f4e1d91c97581e0d5ec63d6edf3248c0.tar.bz2 coreclr-76abdef2f4e1d91c97581e0d5ec63d6edf3248c0.zip |
Reduce running time of GitHub_19361 test case (#23048)
This is a regression test and the original issue indicated that the test
would fail reliably under GC stress. So cut down the size of the lists
being processed and remove the various exclusions.
This reduces execution time on arm64 debug from ~30 mins to 2 seconds.
Closes #20232.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/issues.targets | 6 | ||||
-rw-r--r-- | tests/src/JIT/Regression/JitBlue/GitHub_19361/GitHub_19361.cs | 6 |
2 files changed, 3 insertions, 9 deletions
diff --git a/tests/issues.targets b/tests/issues.targets index 2e11eea393..1b2cc25527 100644 --- a/tests/issues.targets +++ b/tests/issues.targets @@ -535,9 +535,6 @@ <ExcludeList Include="$(XunitTestBinBase)/JIT/jit64/eh/FinallyExec/nonlocalexitinroot/*"> <Issue>Test times out</Issue> </ExcludeList> - <ExcludeList Include="$(XunitTestBinBase)/JIT/Regression/JitBlue/GitHub_19361/GitHub_19361/*"> - <Issue>20232</Issue> - </ExcludeList> <ExcludeList Include="$(XunitTestBinBase)/GC/Scenarios/DoublinkList/dlstack/*"> <Issue>Release only crash</Issue> </ExcludeList> @@ -569,9 +566,6 @@ <ExcludeList Include="$(XunitTestBinBase)/tracing/runtimeeventsource/runtimeeventsource/*"> <Issue>19340</Issue> </ExcludeList> - <ExcludeList Include="$(XunitTestBinBase)/JIT/Regression/JitBlue/GitHub_19361/GitHub_19361/*"> - <Issue>20232</Issue> - </ExcludeList> <ExcludeList Include="$(XunitTestBinBase)/GC/Scenarios/Dynamo/dynamo/*"> <Issue>17129</Issue> </ExcludeList> diff --git a/tests/src/JIT/Regression/JitBlue/GitHub_19361/GitHub_19361.cs b/tests/src/JIT/Regression/JitBlue/GitHub_19361/GitHub_19361.cs index 64fc0d320e..10271c5c50 100644 --- a/tests/src/JIT/Regression/JitBlue/GitHub_19361/GitHub_19361.cs +++ b/tests/src/JIT/Regression/JitBlue/GitHub_19361/GitHub_19361.cs @@ -46,7 +46,7 @@ namespace Repro { var items = new List<(DateTime Date, CompositeSource Key, decimal Attribution)>(); - foreach (var _ in Enumerable.Range(0, rng.Next(1000, 10000))) + foreach (var _ in Enumerable.Range(0, rng.Next(50, 100))) { items.Add(( BaseDate.AddDays(rng.Next(1, 100)), @@ -66,7 +66,7 @@ namespace Repro { var list = new List<CompositeSource>(); - foreach (var _ in Enumerable.Range(0, 100)) + foreach (var _ in Enumerable.Range(0, 50)) { lock (Rng) { @@ -89,7 +89,7 @@ namespace Repro { Console.WriteLine("Starting stress loop"); var compositeSources = GetCompositeSources(); - var res = Parallel.For(0, 10, i => + var res = Parallel.For(0, 5, i => { int seed; lock (Rng) |