[Mono-bugs] [Bug 61946][Nor] New - Process.Start throws wrong exception when file not found

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 26 Jul 2004 09:00:11 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by monobugs@radeldudel.de.

http://bugzilla.ximian.com/show_bug.cgi?id=61946

--- shadow/61946	2004-07-26 09:00:10.000000000 -0400
+++ shadow/61946.tmp.671	2004-07-26 09:00:10.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 61946
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: Server 2003
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: monobugs@radeldudel.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Process.Start throws wrong exception when file not found
+
+Description of Problem:
+
+System.Diagnostics.Process.Start( somefilename) should throw an exception 
+when somefilename is not found. It fails to do this.
+
+NUnit test case to reproduce the problem:
+[Test] 
+[ExpectedException(typeof(System.ComponentModel.Win32Exception))]
+public void CallUnknownCmdTest()
+{
+  Process proc= Process.Start( "FileDoesNotExists.exe");
+}
+
+Actual Results:
+Some text output "command not found"
+
+Expected Results:
+Win32Exception
+
+How often does this happen? 
+everytime