From: Ludovic Henry Date: Fri, 17 Feb 2017 14:23:39 +0000 (-0500) Subject: [ProcessTest] Ensure we enable raising Exited event (#4397) X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=commitdiff_plain;h=f18e9a35e7b996dd03219183a97e542c31eb39a1 [ProcessTest] Ensure we enable raising Exited event (#4397) --- diff --git a/mcs/class/System/Test/System.Diagnostics/ProcessTest.cs b/mcs/class/System/Test/System.Diagnostics/ProcessTest.cs index 45d578d3f58..5db7246a4bd 100644 --- a/mcs/class/System/Test/System.Diagnostics/ProcessTest.cs +++ b/mcs/class/System/Test/System.Diagnostics/ProcessTest.cs @@ -1145,6 +1145,7 @@ namespace MonoTests.System.Diagnostics Assert.Throws(delegate { int exitCode = process.ExitCode; }, "#3"); process.Exited += (s, e) => Assert.Fail ("#4"); + process.EnableRaisingEvents = true; Assert.IsFalse (process.WaitForExit (10), "#5"); Assert.IsFalse (process.HasExited, "#6");