X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=acceptance-tests%2Fprofiler-stress%2Frunner.cs;fp=acceptance-tests%2Fprofiler-stress%2Frunner.cs;h=69ba9e5ab0a2cda0c8eb332b788c1cb22e77a77e;hb=e013096c65e879e6fc5deb3ccfe4d0e1e23c7258;hp=ace091b42076b8b4e643130667ae3de92f4d544c;hpb=f0e6bd2f9637927bc0e93f1f84eea2e7741da690;p=mono.git diff --git a/acceptance-tests/profiler-stress/runner.cs b/acceptance-tests/profiler-stress/runner.cs index ace091b4207..69ba9e5ab0a 100644 --- a/acceptance-tests/profiler-stress/runner.cs +++ b/acceptance-tests/profiler-stress/runner.cs @@ -152,12 +152,14 @@ namespace Mono.Profiling.Tests.Stress { proc.OutputDataReceived += (sender, args) => { if (args.Data != null) - stdout.AppendLine (args.Data); + lock (result) + stdout.AppendLine (args.Data); }; proc.ErrorDataReceived += (sender, args) => { if (args.Data != null) - stderr.AppendLine (args.Data); + lock (result) + stderr.AppendLine (args.Data); }; result.Stopwatch.Start ();