[Mono-devel-list] Patch: System.Diagnostics tests

Bill Middleton flashdict at gmail.com
Tue Apr 12 11:53:00 EDT 2005


While working to get mono up and running on FreeBSD, I discovered that
there were no tests for System.Diagnostics which were being run. 
There are, however, a couple of tests in the group which use
System.Diagnostics, but they weren't as portable as they could have
been, and lacked information for the test driver, and didn't catch
exceptions properly.

I enclose a patch for these two, process1.cs and process2.cs.  They
should now run anywhere (OSX untested), including ordinary command
shell under windows, and I think they can be included in the default
group again.

More detailed description of the patch follows.


Bill


Index: process1.cs
===================================================================
- Catch System.ComponentModel.Win32Exception (not found) and return success

Index: process2.cs
===================================================================
- execute a process based on Platform check
- WaitForExit five seconds
- Kill if nec
- return process exit code

Index: Makefile.am
===================================================================
- Add process1.cs and process2.cs to the list
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.test.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050412/0391f41a/attachment.txt 


More information about the Mono-devel-list mailing list