Merge pull request #1624 from esdrubal/getprocesstimes
[mono.git] / mcs / class / System / Test / System.Diagnostics / ProcessTest.cs
index 436e0e1252c835d9aad8d9bb347110344f50261c..de12a43d3cfc5bc82742870ecb5fe81e345725ee 100644 (file)
@@ -52,6 +52,15 @@ namespace MonoTests.System.Diagnostics
                        }
                }
 
+               [Test] // Covers #26363
+               public void GetProcesses_StartTime ()
+               {
+                       foreach (var p in Process.GetProcesses ()) {
+                               if (!p.HasExited && p.StartTime.Year < 1800)
+                                       Assert.Fail ("Process should not be started since the 18th century.");
+                       }
+               }
+
                [Test]
                public void PriorityClass_NotStarted ()
                {