diff options
author | Alex Rønne Petersen <alex@alexrp.com> | 2018-03-05 23:23:08 +0300 |
---|---|---|
committer | Ludovic Henry <luhenry@microsoft.com> | 2018-03-05 23:23:08 +0300 |
commit | ee4ed72695d8c1e1a9c3ff7e3ab8faeb4998a882 (patch) | |
tree | 85ca4a5618a0b503e6db31980d91d63a3ead7382 /acceptance-tests | |
parent | 4af9e3a5114922695c7b6eba0772b6657bcc325b (diff) |
[acceptance-tests] Add an env var to turn on some Mono debugging options. (#7386)
Diffstat (limited to 'acceptance-tests')
-rw-r--r-- | acceptance-tests/profiler-stress/runner.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/acceptance-tests/profiler-stress/runner.cs b/acceptance-tests/profiler-stress/runner.cs index bd9912659a2..a0815af5088 100644 --- a/acceptance-tests/profiler-stress/runner.cs +++ b/acceptance-tests/profiler-stress/runner.cs @@ -124,6 +124,11 @@ namespace Mono.Profiling.Tests.Stress { if (Environment.GetEnvironmentVariable ("MONO_PROFILER_STRESS_OPTIONS") is string envOptions) options = envOptions; + var suspend = false; + + if (Environment.GetEnvironmentVariable ("MONO_PROFILER_STRESS_SUSPEND") is string envSuspend) + suspend = bool.Parse (envSuspend); + var rand = new Random (seed); var cpus = Environment.ProcessorCount; @@ -174,6 +179,9 @@ namespace Mono.Profiling.Tests.Stress { info.EnvironmentVariables.Clear (); info.EnvironmentVariables.Add ("MONO_PATH", classDir); + if (suspend) + info.EnvironmentVariables.Add ("MONO_DEBUG", "suspend-on-native-crash,suspend-on-unhandled"); + var progress = $"({i + 1}/{benchmarks.Length})"; Console.ForegroundColor = ConsoleColor.Blue; |