diff options
author | Alex Rønne Petersen <alex@alexrp.com> | 2017-07-26 14:03:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-26 14:03:52 +0300 |
commit | 266076030a9be08c603b458451b7e54180603e17 (patch) | |
tree | 212b05d68a50faee28a72de8519e34712b580790 /acceptance-tests | |
parent | 5d9d139e0ac4ecbf02c70cbce5d9a0c65a43faa4 (diff) |
[acceptance-tests] Another attempt fix a StringBuilder race in the profiler stress runner.
Diffstat (limited to 'acceptance-tests')
-rw-r--r-- | acceptance-tests/profiler-stress/runner.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/acceptance-tests/profiler-stress/runner.cs b/acceptance-tests/profiler-stress/runner.cs index 05a1efb3514..e5d44e68b4a 100644 --- a/acceptance-tests/profiler-stress/runner.cs +++ b/acceptance-tests/profiler-stress/runner.cs @@ -201,8 +201,10 @@ namespace Mono.Profiling.Tests.Stress { result.Stopwatch.Stop (); - result.StandardOutput = stdout.ToString (); - result.StandardError = stderr.ToString (); + lock (result) { + result.StandardOutput = stdout.ToString (); + result.StandardError = stderr.ToString (); + } } var resultStr = result.ExitCode == null ? "timed out" : $"exited with code: {result.ExitCode}"; |