Commit Graph
15 Commits
Author SHA1 Message Date
Zoltan Varga 1c65751376 Call BeginErrorReadLine()/BeginOutputReadLine() in a Process test so it runs on windows too. 2010-08-09 19:43:38 +02:00
Zoltan Varga 2072ecbf4f Avoid printing the output of /bin/ls in a Process test. 2010-08-09 18:29:01 +02:00
Andrés G. Aragoneses 5bb70a1030 * Test/System.Diagnostics/ProcessTest.cs: New tests for bug 477943.
* System.Diagnostics/Process.cs: Throw IOEs instead of normal
exceptions. Fixes bug 477943.

svn path=/trunk/mcs/; revision=127932
2009-02-25 02:28:14 +00:00
Raja R Harinath 9d04c77c25 * ProcessTest.cs: Import System.Threading namespace.
svn path=/trunk/mcs/; revision=122245
2008-12-30 15:00:11 +00:00
Miguel de Icaza 1755003275 A bug fix for 459450
2008-12-25  Miguel de Icaza  <[email protected]>

	* ProcessTest.cs: Created a test case from bug 459450.

2008-12-25   Leszek Ciesielski <[email protected]>

	* System.Diagnostics/Process.cs: Raise the
	Process.OutputDataReceived and Process.ErrorDataReceived with null
	arguments at the end.   This is the documented behavior:

	http://msdn.microsoft.com/en-us/library/system.diagnostics.datareceivedeventargs.data.aspx

	And CruiseControl.NET depended on this.   Bug #459450.
	
	* Microsoft.CSharp/CSharpCodeCompiler.cs: Fix the code, as it
	depened on the previous broken behavior.



svn path=/trunk/mcs/; revision=122125
2008-12-25 17:44:52 +00:00
Paolo Molaro bd23e8ade8 Changes to follow PlatformID corlib changes.
svn path=/trunk/mcs/; revision=115659
2008-10-13 15:04:34 +00:00
Robert Jordan 2b194c193d In System.Diagnostics:
2008-06-21  Robert Jordan  <[email protected]>

	* Process.cs (Start_common): UserName may be null or empty.
	Fixes bug  #350543.

In Test/System.Diagnostics:
2008-06-21  Robert Jordan  <[email protected]>

	* ProcessTest.cs (Start_UseShellExecuteWithEmptyUserName):
	add test for bug #350543.


svn path=/trunk/mcs/; revision=106452
2008-06-23 19:09:22 +00:00
Gert Driesen baab1f11d4 * Process.cs: In PriorityClass setter, first check whether value is
valid and remove LAMESPEC since the documentation has been corrected 
for .NET 3.5. Code formatting.
* ProcessTest.cs: Added tests for PriorityClass.

svn path=/trunk/mcs/; revision=91804
2007-12-22 09:48:37 +00:00
Gert Driesen 3b0d04fd6c * Process.cs: Modified StartInfo to throw ArgumentNullException when
value is set to null, instead of ArgumentException. Remove check if   
file name is rooted and exists when UseShellExecute is false, and let
runtime handle this. Fixes bug #345565. When a process cannot be started, do
not access ProcessStartInfo.EnvironmentVariables since that would not allow us
to re-use the instance when changing UseShellExecute. Added argument check in
Start (ProcessStartInfo). Code formatting.
* ProcessTest.cs: Added tests for Start overloads.

svn path=/trunk/mcs/; revision=90693
2007-12-04 16:37:36 +00:00
Robert Jordan a9a707f13e 2007-11-02 Robert Jordan <[email protected]>
* ProcessTest.cs (TestRedirectedOutputIsAsync):
	Comment out the failing asserts until I've found out why they are
	failing.

svn path=/trunk/mcs/; revision=88725
2007-11-02 15:27:20 +00:00
Robert Jordan 8217b4728a 2007-11-02 Robert Jordan <[email protected]>
* ProcessTest.cs (TestRedirectedOutputIsAsync):
	Wait for the pending async operation.

svn path=/trunk/mcs/; revision=88707
2007-11-02 01:42:43 +00:00
Robert Jordan a042cffb4c 2007-11-02 Robert Jordan <[email protected]>
* ProcessTest.cs (TestRedirectedOutputIsAsync):
	Instrument to see why the build bots are failing.


svn path=/trunk/mcs/; revision=88703
2007-11-02 00:28:43 +00:00
Robert Jordan f48a4ff696 2007-11-01 Robert Jordan <[email protected]>
* ProcessTest.cs (TestRedirectedOutputIsAsync):
	Replace the generated script with a simple one (command line based).
	Add additional assert for Process.ExitCode == 0.


svn path=/trunk/mcs/; revision=88688
2007-11-01 21:26:27 +00:00
Robert Jordan 535abaefa2 In Test/System.Diagnostics:
2007-10-30  Robert Jordan  <[email protected]>

	* ProcessTest.cs: Add tests for bug #319829.

In System.Diagnostics:
2007-10-30  Robert Jordan  <[email protected]>

	* Process.cs: Wrap the redirected streams with a stream
	that provides real async Begin/Read|Write operations.
	Fixes bug #319829.

In System.IO:
2007-10-30  Robert Jordan  <[email protected]>

	* MonoSyncFileStream.cs: Add.


svn path=/trunk/mcs/; revision=88491
2007-10-30 18:35:42 +00:00
Gert Driesen 2016ab5b30 * ProcessTest.cs: Added null check tests.
* Process.cs: Allow GetProcesses and GetProcessById overloads with
machine name to work for local machine.
* System_test.dll.sources: Added ProcessTest.cs.

svn path=/trunk/mcs/; revision=70366
2007-01-02 15:07:35 +00:00