Commit Graph
58 Commits
Author SHA1 Message Date
Robert Jordan d7a6be8251 2009-06-26 Robert Jordan <[email protected]>
* SwitchesTest.cs, TraceTest.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136951
2009-06-26 12:34:15 +00:00
Andrés G. Aragoneses eeb713067a changelog..
svn path=/trunk/mcs/; revision=127933
2009-02-25 02:33:30 +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
Gert Driesen f94a21b457 * EventLogTest.cs: Fixed compiler warning.
svn path=/trunk/mcs/; revision=116358
2008-10-18 12:57:33 +00:00
Gert Driesen 0b2a27db70 * TraceListenerTest.cs: Added test for GetSupportedAttributes.
* DelimitedTraceListener.cs: Changed accessibility of
GetSupportedAttributes to protected internal.
* DiagnosticsConfigurationHandler.cs: Use GetSupportedAttributes to
allow custom attributes on tracelisteners. Fixes bug #413203.
* TraceListener.cs: Changed accessibility of GetSupportedAttributes
to protected internal. Removed MonoTODO on GetSupportedAttributes and
Attributes. Fixed line endings.

svn path=/trunk/mcs/; revision=109500
2008-08-02 20:06:21 +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
Atsushi Eno 0ec21c0ebf 2008-06-11 Atsushi Enomoto <[email protected]>
* FileVersionInfoTest.cs : disabled all English-Windows-dependent
	  tests. They all fail on Windows whose language is not English.

	  In general, be careful to compare language-dependent strings.


svn path=/trunk/mcs/; revision=105572
2008-06-11 12:19:48 +00:00
Zoltan Varga 4aeb2c0e3b 2008-05-02 Zoltan Varga <[email protected]>
* TraceTest.cs: Add a test for #385666.

svn path=/trunk/mcs/; revision=102371
2008-05-02 19:53:49 +00:00
Gert Driesen 2c28446e16 * FileVerionInfoTest.cs: Enabled test for bug #374600.
svn path=/trunk/mcs/; revision=101101
2008-04-18 08:51:05 +00:00
Gert Driesen 4d4b86ad93 * FileVersionInfoTest.cs: Enabled tests that previously failed.
Increase code coverage.

svn path=/trunk/mcs/; revision=99283
2008-03-29 12:39:22 +00:00
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
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 0fed5c00c9 * SwitchesTest.cs: Fixed compiler warning.
svn path=/trunk/mcs/; revision=87863
2007-10-21 09:33:34 +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 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
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
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
Atsushi Eno ee87d24b2e 2007-05-19 Atsushi Enomoto <[email protected]>
* TraceListener.cs : in TraceTransfer(), use TraceEvent() (some
	  derived classes depend on this change).
	* DelimitedListTraceListener.cs : implemented.

	* DelimitedListTraceListenerTest.cs : new test.

	* System_test.dll.sources : added DelimitedListTraceListenerTest.cs.


svn path=/trunk/mcs/; revision=77614
2007-05-18 08:35:41 +00:00
Atsushi Eno 720ddca1bd 2007-05-17 Atsushi Enomoto <[email protected]>
* TraceOptions.cs : new enum.
	* TraceListener.cs : support TraceOutputOptions. Fixed missing
	  NET_2_0 condition in TARGET_JVM section.
	* TraceSwitch.cs, BooleanSwitch.cs :
	  Added missing constructors and OnValueChanged().
	* Trace.cs, TraceImpl.cs :
	  Added CorrelationManager and UseGlobalLock.
	* TraceEventCache.cs : initialize property values at construction.
	* Switch.cs : added XmlIgnore on Attributes.

	* SwitchesTest.cs : added tests for BooleanSwitch Value.
	* TraceListenerTest.cs : added test for TraceOutputOptions.

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


svn path=/trunk/mcs/; revision=77581
2007-05-17 17:10:25 +00:00
Atsushi Eno 1428fe4b97 2007-05-14 Atsushi Enomoto <[email protected]>
* EventTypeFilter.cs
	  TraceFilter.cs
	  SourceFilter.cs
	  SwitchLevelAttribute.cs
	  DelimitedListTraceListener.cs
	  SwitchAttribute.cs : new files in 2.0.
	* DiagnosticsConfigurationHandler.cs : partial support for named
	  shared listeners.
	* XmlWriterTraceListener.cs : cosmetic corcompare fixes. Added
	  missing todos.
	* TraceListener.cs : added missing 2.0 stuff. Implemented Filter.
	* DefaultTraceListener.cs : trivial ComVisible fix.

	* DiagnosticsConfigurationHandlerTest.cs : in 2.0 configuration item
	  listeners/add/@type is optional (for named shared listener support).

	* System.dll.sources :
	  Added EventTypeFilter.cs, TraceFilter.cs, SourceFilter.cs, 
	  DelimitedListTraceListener.cs, SwitchAttribute.cs and
	  SwitchLevelAttribute.cs in sys.diagnostics.


svn path=/trunk/mcs/; revision=77331
2007-05-14 08:02:36 +00:00
Atsushi Eno d179fa9910 2007-04-19 Atsushi Enomoto <[email protected]>
* System.dll.sources : added XmlWriterTraceListener.cs.
	* System_test.dll.sources : added TraceListenerTest.cs and
	  XmlWriterTraceListenerTest.cs.

	* XmlWriterTraceListener.cs : new file, implementated.
	* TraceListener.cs : implemented 2.0 members.

	* TraceListenerTest.cs : new test.
	* XmlWriterTraceListenerTest.cs : new test (but disabled since they
	  are too instance dependent).


svn path=/trunk/mcs/; revision=75960
2007-04-19 15:46:13 +00:00
Atsushi Eno e9156bb4b8 2007-01-18 Atsushi Enomoto <[email protected]>
* System.dll.sources: added new sources:
	  TraceSource.cs, SourceLevels.cs, CorrelationManager.cs,
	  TraceEventCache.cs, TraceEventType.cs and SourceSwitch.cs.
	* System_test.dll.sources: added new tests:
	  TraceSourceTest.cs and SourceSwitchTest.cs.

	* Switch.cs : added missing .ctor(), Attributes, Value, 
	  GetSupportedAttributes() and OnValueChanged().
	* DiagnosticsConfigurationHandler.cs : added some hacky handler for
	  new "sources" element. Don't wrap another ConfigurationException.
	* TraceListener.cs : added missing trace methods.
	* TraceSource.cs, SourceLevels.cs, CorrelationManager.cs,
	  TraceEventCache.cs, TraceEventType.cs, SourceSwitch.cs:
	  added missing 2.0 stuff, mostly just stubs.

	* TraceSourceTest.cs, SourceSwitchTest.cs : new tests.
	* SwitchesTest.cs : added test for GetSupportedAttributes().


svn path=/trunk/mcs/; revision=71238
2007-01-18 04:17:22 +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
Gert Driesen c86b5de942 * NullEventLog.cs: Added dummy GetLogNames implementation.
* EventLogImpl.cs: Moved GetEventLogs implementation to base class.
Added abstract GetLogNames method. Added ValidateCustomerLogName
method which should be called by eventlog providers when creating a
new log to ensure the significant part of the log name is unique, does
not match any of the special log names and does not match an exist event
source.
* Win32EventLog.cs: Validate customer log name when creating new log.
Moved GetEventLogs implementation to base class. Added GetLogNames
method.
* LocalFileEventLog.cs: Merged CreateLogStore into CreateEventSource.
Validate customer log name when creating new log. Moved GetEventLogs
implementation to base class. Added GetLogNames method.
* EventLogTest.cs: Added tests for log name validation in
CreateEventSource.

svn path=/trunk/mcs/; revision=64429
2006-08-27 09:38:11 +00:00
Gert Driesen 044a91fa61 * EventLogTest.cs: Use a dedicated temp directory for testing the
local file implementation (2.0 only).

svn path=/trunk/mcs/; revision=64403
2006-08-26 07:05:10 +00:00
Gert Driesen 303150eecc * EventInstanceTest.cs: Added tests for EventInstance.
* EventLog.cs: Removed namespace import.
* EventInstance.cs: Added range checks and check whether specified
entry type is defined.
* System_test.dll.sources: Added EventInstanceTest.cs

svn path=/trunk/mcs/; revision=64104
2006-08-20 14:46:19 +00:00
Gert Driesen bc28d0226b * System.dll.sources: Added Win32EventLog.cs.
* EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
Obsolete attribute to correct property.
* EventSourceCreationData.cs: Updated copyright. For internal ctor,
set log name to "Application" if value is null or zero-length string.
* EventLogImpl.cs: EventImpl now acts as base class for event log
implemenations.
* NullEventLog.cs: Modified to implement new abstract methods of base
class. Removed factory class.
* EventLog.cs: EventLog implementation that delegates just about
everything to individual eventlog providers. To specify the event log
implementation to use, the MONO_EVENTLOG_TYPE environment variable can
be used. Possible values are:
- win32 : read/write entries using the native win32 eventlog
- local[:path] : read/write entries as files to a local directory
- null : silently ignore all entries
The default is "null" on unix (and versions of Windows before NT,
meaning Windows 98, ...), and "win32" on Windows NT (and higher).
When "the local" implementation is used, the directory in which to
store the event logs, event sources and entries can be specified as
part of MONO_EVENTLOG_TYPE environment variable using the syntax
"local:<path>" (eg. local:/home/myuser/mono/eventlog).
* LocalFileEventLog.cs: Event log implementation which uses a local
file store. The directory to use for persistence can be specified
as part of the MONO_EVENTLOG_TYPE environment variable (see above).
If that directory is not explicitly set, then the following directory
will be used for storing eventlog entries:
- windows       : %APPDATA%\mono\eventlog
- unix          : /var/lib/mono/eventlog
On unix, the directory permission for individual eventlog log
directories will be set to 777 (with +t bit) allowing everyone to
read and write eventlog entries while only allowing entries to be
deleted by the user(s) that created them.
Format of log files was modified to allow it contain all necessary
information for an event log entry.
* Win32EventLog.cs: Event log implementation for Windows NT and
higher which uses the Win32 native event log for reading/writing
eventlog entries, and which uses the registry to store event log and
event source registration information.
* EventLogEntryCollection.cs: Delegate implementation to event log
implementation. Use lazy init for enumerating entries. Cache current
item in 2.0 profile.
* EventLogTest.cs: Enable tests. On 2.0 profile, set MONO_EVENTLOG_TYPE
environment variable to force local file implementation to be used for
unit tests. This avoids permission issues for the unit tests, and
allows us to clean up the files/directory that are created during the
test run. Skip tests that cannot pass when the null implementation is
active (on 1.0 profile). Added tests for all WriteEntry and WriteEvent
(2.0 only) overloads, Clear, Entries, Exists and LogNameFromSourceName.

svn path=/trunk/mcs/; revision=64088
2006-08-20 11:54:06 +00:00
Gert Driesen c11d92c6db * EventLogTest.cs: new test, currently not enabled due to UnixRegistry
bug which still needs to be tracked, and which would cause temporary
registry entries to be left behind by running tests.
* EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
Obsolete attribute to correct property.
* EventSourceCreationData.cs: Updated copyright. For internal ctor,
set log name to "Application" if value is null or zero-length string.
* EventLogImpl.cs: EventImpl now acts as base class for event log
implemenations. Added NullEventLog implementation, which is not used
at the moment.
* EventLog.cs: EventLog implementation that uses registry for
keeping track of logs and sources to match .NET (and Windows). When
running on Windows NT (and higher), event entries are written to
the native win32 event log.  Reading event entries is not yet working
for Windows. On linux, we use a local file store (based on patch by
Atsushi).
* UnixEventLog.cs: Event log implementation for linux which uses a
local file store.
* Win32EventLog.cs: Event log implementation for Windows NT and
higher which uses the Win32 native event log.
* EventLogEntryCollection.cs: Delegate implementation to event log
implemenation. Use lazy init for enumerating entries.
* System.dll.sources: Added UnixEventLog.cs and Win32EventLog.cs.
* System_test.dll.sources: Added EventLogTest.cs.

svn path=/trunk/mcs/; revision=63633
2006-08-11 10:32:58 +00:00
Gert Driesen 83d1bbe819 * System_test.dll.souces: Added EventSourceCreationDataTest.cs.
* EventSourceCreationDataTest.cs: new test.
* EventSourceCreationData.cs: Marked ctor internal, and removed ctor.
Throw ArgumentOutOfRangeException if negative value for CategoryCount
is set.

svn path=/trunk/mcs/; revision=63530
2006-08-09 11:10:41 +00:00
Atsushi Eno 73e29a4fb9 2006-05-17 Atsushi Enomoto <[email protected]>
* SettingsPropertyCollection.cs : implemented some synchronization
	  releated members. Actually it can never be synchronized by itself.
	* SettingsBase.cs : Synchronized() just returns the same instance,
	  marking it as IsSynchronized = true. Fixed bug #78430.

	* LocalFileSettingsProviderTest.cs : commented some lines in
	  Initialized() as they don't work under .NET.
	* ApplicationSettingsBaseTest.cs : added Synchronized(), test for
	  bug #78430.

	* SwitchesTest.cs : Ignore NewSwitch under 2.0 as it fails under
	  .NET.


svn path=/trunk/mcs/; revision=60792
2006-05-17 17:20:02 +00:00
Atsushi Eno 091cb74cc9 2006-04-04 Atsushi Enomoto <[email protected]>
* System.dll.sources: added DataReceivedEventArgs.cs and
          DataReceivedEventHandler.cs.
        * System_test.dll.sources : added StopwatchTest.cs.

        * Stopwatch.cs:
          Zoltan was quicker to add it, here I put my implementation ;-)
        * Process.cs :
          Added some missing long members (not implemented anyways).
        * DataReceivedEventHandler.cs DataReceivedEventArgs.cs :
          added new 2.0 types.

        * StopwatchTest.cs : new test.


svn path=/trunk/mcs/; revision=58989
2006-04-04 00:36:49 +00:00
Sebastien Pouliot 5706a6cc71 2005-09-22 Sebastien Pouliot <[email protected]>
* EventLogPermissionAttributeTest.cs: Removed *Choice security actions
	* PerformanceCounterPermissionAttributeTest.cs: Removed *Choice 
	security actions.


svn path=/trunk/mcs/; revision=50485
2005-09-22 13:49:40 +00:00
Gert Driesen 50d35804b7 * TraceTest.cs: Fixed test failure.
svn path=/trunk/mcs/; revision=45731
2005-06-10 04:52:21 +00:00
Sebastien Pouliot 4a3bbaa099 2005-05-31 Sebastien Pouliot <[email protected]>
* EventLogPermissionAttributeTest.cs: Character #133 is refused into
	machine names for 2.0.
	* EventLogPermissionTest.csFx 2.0 now has better arguments checking 
	(i.e. FDBK15131 was fixed).
	* PerformanceCounterPermissionAttributeTest.cs
	* PerformanceCounterPermissionTest.cs: Fx 2.0 now has better arguments
	checking (i.e. FDBK15131 was fixed).


svn path=/trunk/mcs/; revision=45253
2005-05-31 11:16:20 +00:00
Jonathan Pryor 5c9508ccb5 * System/System.Diagnostics/TraceImpl.cs
More Thread-safety fixes.  I have to lock on
    Listeners.SyncRoot as we're traversing the collection and can't let the
    collection change from underneath us while we're iterating over it
    (alternately, we could clone the collection and iterate over the clone
    without having locking issues -- assuming we had a lock-free clone --
    but this would kill the GC).  Fixes 69964.  Only define lock_ if we're
    using the lock-free initialization routine; it's not used otherwise.

  * System/Test/System.Diagnostics/TraceTest.cs Add multi-thread test for #69964.


svn path=/trunk/mcs/; revision=41065
2005-02-22 21:20:17 +00:00
Sebastien Pouliot 9b1feaecdf 2005-01-19 Sebastien Pouliot <[email protected]>
* EventLogPermissionTest.cs: Now works on both Fx 1.1 / 2.0.
	* PerformanceCounterPermissionTest.cs: Now works on both Fx 1.1 / 2.0.


svn path=/trunk/mcs/; revision=39172
2005-01-19 15:21:30 +00:00
Jonathan Pryor 998e1fc3c9 Implement the .NET 1.1 requirement that the
/system.diagnostics/switch/add/@value attribute only contain numeric data and 
some other fixes (thread-safety in the Debug- and Trace-related classes).

  * System/System.Diagnostics/DiagnosticsConfigurationHandler.cs
    (DiagnosticsConfiguration): Don't read the .config file from the 
    static ctor (again), as if it fails we'll get a TypeLoadException -- bad!       Instead, lazy-read the .config file.
  * System/System.Diagnostics/DiagnosticsConfigurationHandler.cs
    (DiagnosticsConfigurationHandler): Require that the /switch/add/@value 
    attribute contains only numeric values.
  * System/System.Diagnostics/DiagnosticsConfigurationHandler.cs: 
  * System/System.Diagnostics/TraceImpl.cs: Don't initialize everything in 
    the static ctor, as if it fails (due to an invalid .confg file) we get a 
    TypeLoadException, while .NET generates a ConfigurationException.  
    Instead, initialize everything the first time the Listeners property is 
    accessed, which allows the static ctor to run without chance of failure, 
    avoiding the TypeLoadException.
  * System/System.Diagnostics/TraceListenerCollection.cs: This should be 
    thread-safe, as it's accessible from a static member of TraceImpl 
    (available through the public Debug and Trace classes).
  * System/System.Diagnostics/Switch.cs: Leave the original switch value alone.
    If it isn't valid (i.e. numeric), the DiagnosticsConfigurationHandler 
    will catch it.
  * System/Test/test-config-file: Remove "string-value" switch, as it causes 
    ConfigurationExceptions under .NET 1.1 (the value attribute can't be 
    non-numeric), and Mono now follows this behavior.  Add a "custom-switch" 
    value, which is used in the regression tests.
  * System/Test/System.Diagnostics/DiagnosticsConfigurationHandlerTest.cs: 
    .NET 1.1 requires that the value attribute be a numeric value; check for 
    that and update the success test so that they'll actually pass.
  * System/Test/System.Diagnostics/SwitchesTest.cs: TestNewSwitch reads 
    "custom-switch" now, and the switches value is now "42", not "0".  
    Remove warning about unused variable.


svn path=/trunk/mcs/; revision=39090
2005-01-18 13:25:34 +00:00
Jonathan Pryor 9af2dd51ca Bring unit tests & mono up-to-date with .NET 1.1. The <system.diagnostics/>
configuration element /switches/add/@value attribute is now *required*, not
optional (as it was under .NET 1.0).

* System/System.Diagnostics/DiagnosticsConfigurationHandler.cs:
  The /switch/add/@value attribute isn't optional under .NET 1.1, so make 
  sure it exists.

* System/Test/test-config-file: Remove <add/> elements lacking a value 
  attribute.  .NET 1.1 doesn't support this anymore, and neither does Mono.

* System/Test/System.Diagnostics/DiagnosticsConfigurationHandlerTest.cs:
  .NET 1.1 doesn't permit <add/> elements without a value attribute.  
  Assert the same under Mono.


svn path=/trunk/mcs/; revision=39046
2005-01-17 20:42:06 +00:00
Jonathan Pryor a6549c0535 * DiagnosticsConfigurationHandlerTest.cs: Don't ignore tests, instead mark
them as [Category ("NotDotNet")]; Fix the TraceTag_Listeners example (it
    was passing invalid XML in a "valid" test).

svn path=/trunk/mcs/; revision=39042
2005-01-17 20:10:41 +00:00
Nick Drochak fc108a66df 2005-01-08 Nick Drochak <[email protected]>
* EventLogPermissionTest.cs
	* PerformanceCounterPermissionTest.cs: Make tests pass on MS.NET.

svn path=/trunk/mcs/; revision=38522
2005-01-08 13:08:44 +00:00
Sebastien Pouliot 5377c62903 2004-09-11 Sebastien Pouliot <[email protected]>
* EventLogPermissionTest.cs: New. Unit tests for EventLogPermission.
	* PerformanceCounterPermissionTest.cs: New. Unit tests for
	PerformanceCounterPermission.

svn path=/trunk/mcs/; revision=33761
2004-09-11 22:48:00 +00:00
Sebastien Pouliot fd63bebf56 2004-09-10 Sebastien Pouliot <[email protected]>
* EventLogPermissionAttributeTest.cs: New. Unit tests for
	EventLogPermissionAttribute.
	* PerformanceCounterPermissionAttributeTest.cs: New. Unit tests for
	PerformanceCounterPermissionAttribute.

svn path=/trunk/mcs/; revision=33718
2004-09-10 19:20:53 +00:00
Nick Drochak a797c7a10e 2004-02-05 Nick Drochak <[email protected]>
* DiagnosticsConfigurationHandlerTest.cs: Ignore tests using classes not
        meant to be used directly.

svn path=/trunk/mcs/; revision=22792
2004-02-05 13:35:41 +00:00