Commit Graph
207 Commits
Author SHA1 Message Date
Gert Driesen 3009758b4d * FileVersionInfoTest.cs: Added set of (mostly notworking) tests for
FileVersionInfo, and indirectly also for AssemblyBuilder.
* FileVersionInfo.cs (GetVersionInfo): Resolve filename to absolute
path, and throw FileNotFoundException if it does not exist.
* System_test.dll.sources: Added FileVersionInfoTest.cs.

svn path=/trunk/mcs/; revision=93643
2008-01-23 12:39:43 +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
Dick Porter 6ffa6c9dbc 2007-12-19 Dick Porter <[email protected]>
* Process.cs: Check that the process has been started before
	getting or setting the priority class.  Fixes bug 348415.

2007-12-19  Dick Porter  <[email protected]>

	* Win32Exception.cs: Add text for error 5, Access denied.



svn path=/trunk/mcs/; revision=91629
2007-12-19 14:25:14 +00:00
Miguel de Icaza a69047bd6d 07-12-10 Miguel de Icaza <[email protected]>
* DefaultTraceListener.cs: By default set the AssertUiEnabled to
	false, as this is what we had previously and some broken
	applications (Tomboy) are too trigger happy with Debug.Assert. 

	Also, we now load the Windows.Forms code on demand, instead of
	preloading it on the static ctor to reduce memory usage.


svn path=/trunk/mcs/; revision=91070
2007-12-10 22:45:06 +00:00
Gert Driesen 1c14498de3 * LocalFileEventLog.cs: To allow entry to be fully written before
attempting to read it, added small sleep period in the Created event
of the FSW.

svn path=/trunk/mcs/; revision=90994
2007-12-08 16:02:41 +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
Jb Evain 69c630429f 2007-11-16 Jb Evain <[email protected]>
* Debug_2_1.cs: simply write debug messages to the
	console.


svn path=/trunk/mcs/; revision=89763
2007-11-16 15:13:21 +00:00
Dick Porter e2577f0f0d 2007-11-15 Dick Porter <[email protected]>
* Process.cs: Pass the process handle to GetModules_internal();



svn path=/trunk/mcs/; revision=89687
2007-11-15 17:13:46 +00:00
Marek Safar e61dde083e Warnings cleanup
svn path=/trunk/mcs/; revision=89678
2007-11-15 14:14:49 +00:00
Atsushi Eno c961accff5 2007-11-13 Atsushi Enomoto <[email protected]>
* Process.cs : ... and it exposed some missing attributes.


svn path=/trunk/mcs/; revision=89548
2007-11-13 11:51:37 +00:00
Atsushi Eno 42bd154fb0 2007-11-13 Atsushi Enomoto <[email protected]>
* Process.cs : oops, SessionId was int.


svn path=/trunk/mcs/; revision=89532
2007-11-13 09:45:56 +00:00
Atsushi Eno 09a8cb64ff oops.
svn path=/trunk/mcs/; revision=89531
2007-11-13 09:37:43 +00:00
Atsushi Eno 3df8967748 2007-11-13 Atsushi Enomoto <[email protected]>
* Process.cs : added missing SessionId (NIE).


svn path=/trunk/mcs/; revision=89530
2007-11-13 09:29:03 +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
Miguel de Icaza 9cf1277ccf 2007-09-25 Miguel de Icaza <[email protected]>
* Process.cs: Return an empty collection to prevent crashes;
        Fixes #319946


svn path=/trunk/mcs/; revision=86360
2007-09-25 21:43:56 +00:00
Paolo Molaro bc3b51b83f Tue Sep 25 18:03:37 CEST 2007 Paolo Molaro <[email protected]>
* Process.cs: eliminate the console encoding logic which was
	duplicated from System.Console and just use Console.Out.Encoding
	(bug #328162).


svn path=/trunk/mcs/; revision=86341
2007-09-25 15:57:26 +00:00
Gert Driesen d476d382cb * DiagnosticsConfigurationHandlerTest.cs: No longer derive from
deprecated Assertion class. Code formatting. On 2.0 profile, allow
non-integral values for switches.     
* BooleanSwitch.cs: Use base ctor for default value.
* Switch.cs: On 2.0 profile, store default value and use it if no
value is set in config file.
* SourceSwitch.cs: Use null to signal that there's no default value.

svn path=/trunk/mcs/; revision=86220
2007-09-22 17:54:03 +00:00
Gert Driesen cbad6d566a * DiagnosticsConfigurationHandler.cs: Rename ValidateIntegralValue
to GetSwitchValue. On 2.0 profile, leave the type conversion to
Switch implementations. Minor corrections to exception messages to
match MS.
* Switch.cs: Avoid unnecessary inits. On 2.0 profile, catch and
rethrow exceptions in setter for Value. Do not hide exceptions thrown
in GetConfigFileSetting. Only set value from config file if switch is
actually defined.
* SourceSwitch.cs: Use SwitchSetting for getting/storing value instead
of new field. In OnValueChanged, parse enum value.
* TraceSwitch.cs: If SwitchSetting is changed to value > 4, then set
it to Verbose. In OnValueChanged, parse value case-insensitively, and
assign it to SwitchSetting (to allow other integral values).

svn path=/trunk/mcs/; revision=86141
2007-09-21 12:37:04 +00:00
Roei Erez 0e75b3e2af fix NullPointerException when TraceOptions is not initialized
svn path=/trunk/mcs/; revision=85558
2007-09-10 10:33:22 +00:00
Atsushi Eno b82fb5fab7 2007-09-05 Atsushi Enomoto <[email protected]>
* EventLog.cs : added cosmetic 2.0 attributes on newly added members.


svn path=/trunk/mcs/; revision=85372
2007-09-05 17:18:48 +00:00
Atsushi Eno 5ccf103008 2007-09-05 Atsushi Enomoto <[email protected]>
* EventLog.cs, EventLogImpl.cs, LocalFileEventLog.cs, NullEventLog.cs,
	  Win32EventLog.cs : added missing members, will be left unsupported
	  in non-Win32 impl and left unimplemented in Win32.
	* CounterCreationDataCollection.cs : in 2.0 OnValidate() is overriden
	  instad of OnInsert().
	* Process.cs : removed StandardErrorEncoding and
	  StandardOutputEncoding. They do not exist anymore.


svn path=/trunk/mcs/; revision=85336
2007-09-05 08:57:02 +00:00
Marek Safar d36d3dcfce Build fix
svn path=/trunk/mcs/; revision=85260
2007-09-04 08:48:03 +00:00
Atsushi Eno f8d1a585d5 2007-09-03 Atsushi Enomoto <[email protected]>
* ProcessStartInfo.cs : Implemented Verbs. It is done.


svn path=/trunk/mcs/; revision=85239
2007-09-03 17:42:06 +00:00
Atsushi Eno 34df70f6db there was a wrong and confusing description.
svn path=/trunk/mcs/; revision=85212
2007-09-03 09:13:12 +00:00
Atsushi Eno 14448f8d30 2007-09-03 Atsushi Enomoto <[email protected]>
* Process.cs, ProcessStartInfo.cs : user info support (on windows).
	 Removed encoding_stderr, encoding_stdout which are not needed and
	 do not match icall.


svn path=/trunk/mcs/; revision=85209
2007-09-03 08:51:17 +00:00
Robert Jordan ff0f205a05 2007-08-23 Robert Jordan <[email protected]>
* Process.cs: implement PriorityClass. Fixes #81756.


svn path=/trunk/mcs/; revision=84679
2007-08-23 06:17:06 +00:00
Paolo Molaro 822ca991f0 Mon Aug 20 12:41:09 CEST 2007 Paolo Molaro <[email protected]>
* Process.cs: implemented icall for system/user times.


svn path=/trunk/mcs/; revision=84440
2007-08-20 10:18:46 +00:00
Gert Driesen b5039e39d7 * EventLog.cs: Do not allow all whitespace machine name. Do nothing
when setting the same value for EnableRaisingEvents, and only modify
value of field when enable/disable succeeded. Treats log name case
insensitively on all platforms, and perform reset when the log name
is changed. Validate new machine name in property, and treat it
case-insensitively. Perform reset when source is modified, and log
name was not explicitly set. When EventLog is closed, also disable
event watcher.
* LocalEventLog.cs: In Close, clean-up the FileSystemWatcher. Add
locking to Created eventhandler to avoid duplicate notifications.
* Win32EventLog.cs: Cache handle for reading from eventlog. In Close,
close the read handle. Implement support for watching win32 eventlog.
Fixes bug #82436.
* EventLogTest.cs: Added tests for validity of machine name. Added
tests for case-insensitivity of Source, Log and MachineName.

svn path=/trunk/mcs/; revision=84049
2007-08-14 11:23:24 +00:00
Jb Evain 8227d28795 remove unneeded stuff for 2.1
svn path=/trunk/mcs/; revision=83775
2007-08-09 17:22:18 +00:00
Gonzalo Paniagua Javier b28ba972c6 2007-08-08 Gonzalo Paniagua Javier <[email protected]>
* Process.cs: added StandardOutputEncoding and StandardErrorEncoding
	properties. Bug #82262 fixed.


svn path=/trunk/mcs/; revision=83703
2007-08-09 03:48:02 +00:00
Atsushi Eno 520f81d70b 2007-08-06 Atsushi Enomoto <[email protected]>
* Process.cs, ProcessStartInfo.cs : added StandardOutputEncoding
	  and StandardErrorEncoding.

	* ProcessStartInfoTest.cs: tests for Standard[Output|Error]Encoding.


svn path=/trunk/mcs/; revision=83566
2007-08-06 23:46:28 +00:00
Atsushi Eno 3f3ee2666c 2007-08-06 Atsushi Enomoto <[email protected]>
* PerformanceCounterCategory.cs PerformanceCounter.cs :
	  added missing 2.0 stuff (unimplemented, where things are anyways
	  unimplemented in 1.x layer).


svn path=/trunk/mcs/; revision=83523
2007-08-06 07:48:23 +00:00
Atsushi Eno bc1aba7e94 2007-08-06 Atsushi Enomoto <[email protected]>
* PerformanceCounterInstanceLifetime.cs
	  PerformanceCounterCategoryType.cs : new.
	* ICollectData.cs ProcessStartInfo.cs
	  InstanceDataCollectionCollection.cs PerformanceCounter.cs
	  InstanceDataCollection.cs Process.cs :
	  cosmetic attributes cleanup.

	* System.dll.sources : added PerformanceCounterInstanceLifetime.cs
	  and PerformanceCounterCategoryType.cs.


svn path=/trunk/mcs/; revision=83517
2007-08-06 05:40:47 +00:00
Jb Evain c5a808fcaf 2007-08-03 Jb Evain <[email protected]>
* FileVersionInfo.cs: force the use of the params
	AppendFormat method of StringBuilder as it is the only
	one accessible in 2.1 and in the previous versions.


svn path=/trunk/mcs/; revision=83490
2007-08-04 20:45:41 +00:00
Jb Evain 4a8a8de98a 2007-08-03 Jb Evain <[email protected]>
* FileVersionInfo.cs: remove CAS checks for 2.1.

svn path=/trunk/mcs/; revision=83455
2007-08-03 21:27:17 +00:00
Jb Evain ccd11c2531 2007-08-03 Jb Evain <[email protected]>
* Process.cs: disable StartExistCallbackIfNeeded in 2.1.

svn path=/trunk/mcs/; revision=83453
2007-08-03 21:13:42 +00:00
Jb Evain e8dcf3eef8 in System.Diagnostics:
2007-08-03  Jb Evain  <[email protected]>

	* ProcessThreadCollection.cs
	  ProcessModuleCollection.cs: use our own collection base
	  for the 2.1 profile, as ReadOnlyCollectionBase does not exist
	  in 2.1, and they are internalized by the linker.

in System.ComponentModel:

2007-08-03  Jb Evain  <[email protected]>

	* ComponentCollection.cs: use our own collection base
	  for the 2.1 profile, as ReadOnlyCollectionBase does not exist
	  in 2.1, and they are internalized by the linker.

svn path=/trunk/mcs/; revision=83421
2007-08-03 17:32:44 +00:00
Atsushi Eno 533471d37d 2007-08-02 Atsushi Enomoto <[email protected]>
* EventLogTraceListener.cs : fixed wrong 2.0 dependency in 1.x.


svn path=/trunk/mcs/; revision=83285
2007-08-02 15:02:09 +00:00
Atsushi Eno 1531a0410f 2007-08-02 Atsushi Enomoto <[email protected]>
* EventLogTraceListener.cs : implemented.


svn path=/trunk/mcs/; revision=83284
2007-08-02 14:58:28 +00:00
Atsushi Eno 4ecf370fff 2007-08-02 Atsushi Enomoto <[email protected]>
* EventLogImpl.cs
	  EventLog.cs
	  LocalFileEventLog.cs : Implemented EntryWritten event support.
	* Win32EventLog.cs, NullEventLog.cs : they need stub overrides.
	* EventLogEntry.cs : [MonitoringDescription].
	* DiagnosticsConfigurationHandler.cs : [Obsolete]


svn path=/trunk/mcs/; revision=83277
2007-08-02 12:32:07 +00:00
Atsushi Eno 9cfd8eb9b3 oy, forgot &copy;
svn path=/trunk/mcs/; revision=83224
2007-08-01 17:57:04 +00:00
Atsushi Eno 2b4695a077 2007-08-01 Atsushi Enomoto <[email protected]>
* DefaultTraceListener.cs : implemented AssertUiEnabled using MWF.


svn path=/trunk/mcs/; revision=83223
2007-08-01 17:56:04 +00:00
Atsushi Eno 9fd98baecc 2007-08-01 Atsushi Enomoto <[email protected]>
* CounterSample.cs : implemented missing 2.0 equality stuff.
	* CounterSampleCalculator.cs : static in 2.0.


svn path=/trunk/mcs/; revision=83222
2007-08-01 17:55:27 +00:00
Gonzalo Paniagua Javier b92f00f9a4 2007-07-24 Gonzalo Paniagua Javier <[email protected]>
* Process.cs: use the default encoding or the windows input/output
	encodings for the process input/output/error streams. Bug #80838 fixed.


svn path=/trunk/mcs/; revision=82618
2007-07-24 22:26:31 +00:00
Gonzalo Paniagua Javier 81c1bfa917 2007-07-14 Gonzalo Paniagua Javier <[email protected]>
* Process.cs: don't send empty lines that are not in the input. Fixes
	bug #79529.


svn path=/trunk/mcs/; revision=81996
2007-07-14 22:44:21 +00:00
Raja R Harinath f36b1982dc In .:
2007-07-11  Ankit Jain  <[email protected]>

	* System_test.dll.sources: Add ProcessStartInfoTest.cs.

In System.Diagnostics:
2007-07-11  Ankit Jain  <[email protected]>

	* ProcessStartInfo.cs (WorkingDirectory.set): Don't set
	working_directory to null.

In Test/System.Diagnostics:
2007-07-11  Ankit Jain  <[email protected]>

	* ProcessStartInfoTest.cs: New.

svn path=/trunk/mcs/; revision=81783
2007-07-11 11:13:13 +00:00
Konstantin Triger 0deee132c8 fixing ifdefs
svn path=/trunk/mcs/; revision=78503
2007-06-03 13:28:07 +00:00
Atsushi Eno 2528ab0258 2007-05-18 Atsushi Enomoto <[email protected]>
* TraceSourceInfo.cs : new class for storing configuration data.
	* TraceSource.cs : TraceEventCache arguments should be null (they are
	  nullable). Use TraceSourceInfo above.
	* DiagnosticsConfigurationHandler.cs : removed hack to store listeners
	  in named sources, not traceimpl. Create TraceSource objects from
	  configuration data.

	* System.dll.sources : added TraceSourceInfo.cs.


svn path=/trunk/mcs/; revision=77640
2007-05-18 13:52:06 +00:00
Marek Safar 600771b439 2007-05-18 Marek Safar <[email protected]>
* flowanalysis.cs, statement.cs: Put back improved error handling.


svn path=/trunk/mcs/; revision=77631
2007-05-18 11:46:47 +00:00
Atsushi Eno 03a8c0e969 2007-05-19 Atsushi Enomoto <[email protected]>
* XmlWriterTraceListener.cs : open file in shared r/w mode.
	* DiagnosticsConfigurationHandler.cs : process <sharedListeners>
	  elements first, so that named listeners work fine.
	* EventLogTraceListener.cs : added 2.0 stubs.
	* CorrelationManager.cs : removed todo.


svn path=/trunk/mcs/; revision=77625
2007-05-18 11:10:36 +00:00