Merge branch 'master' of github.com:mono/mono
[mono.git] / mcs / class / System / Test / System.Diagnostics / ProcessTest.cs
index 49c7a4bf6b4d5791d3a1762a91985dc20d8e3d44..7c70b5d6cb119bc848d978a674b78314e8c36693 100644 (file)
@@ -800,7 +800,12 @@ namespace MonoTests.System.Diagnostics
                {
                        Process p = new Process ();
                        p.StartInfo = GetCrossPlatformStartInfo ();
+                       p.StartInfo.UseShellExecute = false;
+                       p.StartInfo.RedirectStandardOutput = true;
+                       p.StartInfo.RedirectStandardError = true;
                        p.Start ();
+                       p.BeginErrorReadLine();
+                       p.BeginOutputReadLine();
                        p.WaitForExit ();
                        String.IsNullOrEmpty (p.ExitCode + "");