Commit Graph
63 Commits
Author SHA1 Message Date
Marek Safar b166ec8b48 Fixes failing tests 2013-07-20 09:18:58 +02:00
Alistair Leslie-Hughes 070c3abecf Allow TrySetApartmentState to set the same state multiple times.
License: This patch is under the MIT/X11 license.
2013-07-17 15:22:54 +10:00
Marek Safar 99b72a868b Fix failing tests 2013-02-26 23:19:34 +01:00
Marek Safar 762b050917 Merge tests from mobile branch 2013-02-26 16:28:36 +01:00
Marek Safar 915b61a66d Mobile tests update 2013-02-15 16:35:41 +01:00
Marek Safar d6af35c68f Fix more mobile tests 2013-02-12 20:02:07 +01:00
Marek Safar 1041e924c1 Fix few tests 2012-06-25 19:35:13 +01:00
Marek Safar 0b01be241c Improve failing test 2012-05-30 19:03:51 +01:00
Zoltan Varga 35e14ee70b Allow setting the name of threadpool threads. Fixes #4269. 2012-04-09 08:30:01 +02:00
Zoltan Varga 7448e606d9 Add tests for Thread.VolatileRead/Write 2011-10-20 19:26:39 +02:00
Zoltan Varga fab2a3e2b5 Fix the Thread.Interrupt () test now that it is implemented. 2011-07-01 02:49:08 +02:00
Jb Evain e1e5ad9504 Add test for Thread.ctor where the stacksize is not divisible by the system page size 2011-05-02 11:42:47 +02:00
Rolf Bjarne Kvinge f26a050098 [corlib] Ensure Thread.ManagedThreadId is unique per thread.
This fixes bug #667329.

The problem was that ManagedThreadId was created from a per-appdomain
counter, but stored in a per-thread storage, so if two threads could
end up with the same ManagedThreadId if a second appdomain executed
on the second thread first.
2011-04-15 14:56:21 +02:00
Atsushi Eno a0a00924d2 Marked a couple of tests as NotDotNet as they blocked nunit completion on .NET. 2011-04-06 16:53:02 +09:00
Jb Evain 65eafbff5b 2009-12-09 Jb Evain <[email protected]>
* ThreadTest.cs: add a test for a null callback passed to
	ThreadPool.QueueUserWorkItem.


svn path=/trunk/mcs/; revision=147933
2009-12-09 19:20:42 +00:00
Sebastien Pouliot b6a5bb1207 In System.Threading:
2009-10-25  Sebastien Pouliot  <[email protected]>

	* Thread.cs: Fix validations for Join and Sleep overloads

In Test/System.Threading:
2009-10-25  Sebastien Pouliot  <[email protected]>

	* ThreadTest.cs: Add test cases for Current[UI]Culture (not 
	working), Name, Join, Sleep and SpinWait


svn path=/trunk/mcs/; revision=144824
2009-10-25 16:41:18 +00:00
Bill Holmes 7b51fee50f 2008-07-07 Bill Holmes <[email protected]>
* ThreadTest.cs : Tests added for Thread.Interrupt.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mcs/; revision=107398
2008-07-07 17:03:30 +00:00
Gert Driesen 47f5d6c510 * TimerTest.cs: Removed NotWorking category from TestDisposeOnCallback
test. Numbered asserts. Minor code formatting updates. Removed obsolete
comment on class.
* ThreadTest.cs: Use Assert.Fail for tests that fail on the Mono
runtime only when these tests are being executed on the Mono runtime.

svn path=/trunk/mcs/; revision=105788
2008-06-13 18:35:36 +00:00
Atsushi Eno fc13a9509d 2007-12-28 Atsushi Enomoto <[email protected]>
* ThreadTest.cs : made couple of tests fail under Windows and made
	  corlib tests run without timtout.


svn path=/trunk/mcs/; revision=91984
2007-12-28 08:42:21 +00:00
Atsushi Eno 9237922eef 2007-12-28 Atsushi Enomoto <[email protected]>
* ThreadTest.cs : marked TestStart() as NotDotNet. It hangs.


svn path=/trunk/mcs/; revision=91977
2007-12-28 05:23:45 +00:00
Gert Driesen 33ea895c0b * ThreadTest.cs: On 2.0 profile, enable > 0 tests for GetHashCode.
Added test that asserts if the hashcode of two threads is distinct.

svn path=/trunk/mcs/; revision=87868
2007-10-21 15:01:17 +00:00
Dick Porter 6fc907c570 2007-10-19 Dick Porter <[email protected]>
* ThreadTest.cs: Re-enable ManagedThreadId test too



svn path=/trunk/mcs/; revision=87825
2007-10-19 13:18:01 +00:00
Dick Porter c637801cd3 2007-10-19 Dick Porter <[email protected]>
* ThreadTest.cs: Re-enable GetHashCodeTest


svn path=/trunk/mcs/; revision=87824
2007-10-19 13:15:05 +00:00
Dick Porter 15cdea5e46 2007-10-05 Dick Porter <[email protected]>
* ThreadTest.cs: Disable GetHashCodeTest while I figure out why
	GetHashCode sometimes returns 0.


svn path=/trunk/mcs/; revision=86984
2007-10-05 14:16:15 +00:00
Dick Porter f6ac366e86 2007-09-25 Dick Porter <[email protected]>
* ThreadTest.cs: Enable GetHashCodeTest



svn path=/trunk/mcs/; revision=86339
2007-09-25 15:34:04 +00:00
Gert Driesen 1269d670e0 * ThreadTest.cs: Added GetHashCode test for bug #325566.
svn path=/trunk/mcs/; revision=85965
2007-09-18 12:28:18 +00:00
Gert Driesen f930a38e6a * ThreadTest.cs: Added test for bug #82700. Re-enabled and fixed some
tests that pass on my two boxes. Shoot me if these break the buildbots.
Cleaned up some tests.

svn path=/trunk/mcs/; revision=85374
2007-09-05 17:39:49 +00:00
Gert Driesen beb8d0c0df * ThreadTest.cs: Enabled test for bug #81658, and uncommented code
that relies on that fix.

svn path=/trunk/mcs/; revision=83811
2007-08-10 12:52:50 +00:00
Dick Porter 90542ec8a6 2007-08-10 Gert Driesen <[email protected]>
* Thread.cs: Throw ThreadStateException when retrieving ApartmentState
	or IsBackground if thread is stopped. Fixes bug #81658.

2007-08-10  Gert Driesen  <[email protected]>

	* ThreadTest.cs: Enabled test for bug #81658.


svn path=/trunk/mcs/; revision=83806
2007-08-10 10:18:07 +00:00
Gert Driesen 31dca00816 * ThreadTest.cs: Removed tests for bug #81930, since other tests can
break these by changing the CurrentCulture or CurrentUICulture. 
Instead I've added a standalone test for this (in the gert module).

svn path=/trunk/mcs/; revision=81595
2007-07-08 14:26:35 +00:00
Gert Driesen e80c7764f2 * DirectoryTest.cs: Restore original CurrentCulture on teardown.
* FileSystemInfoTest.cs: Restore original CurrentCulture on teardown.
Removed stray tabs. Code formatting.
* FileTest.cs: Restore original CurrentCulture on teardown. Removed
stray tabs. Changes spaces to tabs.
* ThreadTest.cs: Added tests for bug #81930. 
* CultureInfoTest.cs: Added exception tests when invoking NumberFormat  
or DateTimeFormat on a neutral culture. Added tests for bug #81930.
No longer derive from deprecated Assertion class. Added tests for
GetCultureInfo (2.0).
* ArrayTest.cs: Added test for bug #81941.
* ByteTest.cs: Restore original CurrentCulture in teardown.
* DecimalFormatterTest.cs: Restore original CurrentCulture in teardown.
Code formatting.
* DecimalTest.cs: Code formatting.
* DoubleFormatterTest.cs: Test relies on specific culture, so set it
up here. This worked before since the CurrentCulture was set in another
TestFixture, and the original one was not restored.
* FloatingPointFormatterTest.cs: Same.
* NumberFormatterTest.cs: Same. Removed stray tabs and fixes code
formatting.
* SingleFormatterTest.cs: Restore original culture on teardown. Code
formatting.
* SingleTest.cs: Same.
* StringComparerTest.cs: Restore original culture on teardown.

svn path=/trunk/mcs/; revision=80626
2007-06-24 14:20:09 +00:00
Gert Driesen 8277bf73e2 * ThreadTest.cs: Enabled test for bug #81720.
svn path=/trunk/mcs/; revision=78982
2007-06-08 18:48:40 +00:00
Gert Driesen f33f31877b * ThreadTest.cs: Added test for bug #81720. Improved test for
bug #81658. Added test for changing ApartmentState on background
thread.

svn path=/trunk/mcs/; revision=77861
2007-05-23 19:08:04 +00:00
Gert Driesen 49ef830b65 * ThreadTest.cs: Use Assert instead of deprecated Assertion class.
Code formatting. Added test for bug #81568.

svn path=/trunk/mcs/; revision=77573
2007-05-17 16:20:21 +00:00
Gert Driesen a0bd701d7d * ThreadTest.cs: Fix build using csc 1.x.
svn path=/trunk/mcs/; revision=77488
2007-05-16 16:44:43 +00:00
Jonathan Chambers e706c6bfd2 2007-05-09 Jonathan Chambers <[email protected]>
* Thread.cs: Add ApartmentState related tests.


svn path=/trunk/mcs/; revision=77078
2007-05-09 18:34:13 +00:00
Eyal Alalouf f65669f34f Port NUnit tests to TARGET_JVM configuration.
svn path=/trunk/mcs/; revision=73714
2007-03-05 14:57:05 +00:00
Atsushi Eno d211f6102b 2006-01-18 Atsushi Enomoto <[email protected]>
* ThreadTest.cs : mark not-working tests as [Ignore] since it blocks
	  run-test-ondotnet under 2.0 profile.


svn path=/trunk/mcs/; revision=55724
2006-01-18 14:17:13 +00:00
Sebastien Pouliot 163d45221b 2005-10-06 Sebastien Pouliot <[email protected]>
* ThreadTest.cs: Added regression test for #76332 when an IPrincipal
	instance should be copied in any new thread created.


svn path=/trunk/mcs/; revision=51333
2005-10-06 13:20:21 +00:00
Raja R Harinath 2e0c1ee3ac revert accidental checkin. This doesn't re-enable those tests since the
TestSuites themselves are disabled.


svn path=/trunk/mcs/; revision=46089
2005-06-16 12:51:54 +00:00
Raja R Harinath 3bb11dfff8 In System.Collections.Generic:
* Dictionary.cs (GetKeys, GetValues): Remove.
	(SetThreshold): New function to calculate the resize threshold.
	(CopyTo): Don't use foreach syntax.
	(ContainsValue): Likewise.  Use default equality comparer of the
	value type.
	(GetObjectData): Use CopyTo to copy into temporary array.  Don't
	save redundant _usedSlots and _threshold.
	(OnDeserialization): Rewrite.
	(ICollection<>.CopyTo): Forward to CopyTo.
	(Enumerator._nextIndex): Rename to from _index.
	(Enumerator._next, Enumerator.FixNext): Remove.
	(Enumerator.Current): Rewrite to avoid need for _next.
	(Enumerator.IEnumerator.Reset): Update.
	(KeyCollection): Is also IEnumerable<TKey> and IEnumerable.
	Update methods to conform to standard.
	(KeyCollection.GetEnumerator): Restore.  Return the correct type.
	(KeyCollection.Enumerator): Rename from KeyEnumerator.  Simple
	wrapper that forwards to Dictionary<,>.Enumerator.
	(ValueCollection): Likewise.

In Test/System.Collections.Generic:
	* DictionaryTest.cs (SliceCollectionsEnumeratorTest): New test
	based on #75053.

svn path=/trunk/mcs/; revision=46087
2005-06-16 12:45:33 +00:00
Ben Maurer 9f7d33696e warnings
svn path=/trunk/mcs/; revision=45714
2005-06-09 17:35:29 +00:00
Ben Maurer c7eebdf95a re-disable stuff
svn path=/trunk/mcs/; revision=45713
2005-06-09 17:32:16 +00:00
Gonzalo Paniagua Javier 58df5bd3a6 2005-06-06 Gonzalo Paniagua Javier <[email protected]>
* ThreadTest.cs: sanitize waiting for a thread that might be already
	done. Added test for Thread.Start called after thread.Abort, which used
	to segfault.


svn path=/trunk/mcs/; revision=45464
2005-06-06 03:23:25 +00:00
Gonzalo Paniagua Javier 2f6782db8d Enabled a bunch of tests that work fine now
svn path=/trunk/mcs/; revision=45450
2005-06-06 00:02:10 +00:00
Ben Maurer 820f4ddc9b threading tests fuck 2.0, news at 11
svn path=/trunk/mcs/; revision=40784
2005-02-17 02:06:01 +00:00
Nick Drochak 381ae4cd18 2005-01-31 Nick Drochak <[email protected]>
* ThreadTest.cs: SuspendAbort is not working it seems.

svn path=/trunk/mcs/; revision=39845
2005-01-31 14:07:35 +00:00
Nick Drochak b0fdbf999a 2005-01-18
svn path=/trunk/mcs/; revision=39092
2005-01-18 14:14:31 +00:00
Nick Drochak 8067110646 2005/01/03 Nick Drochak <[email protected]>
* System.Globalization/TextInfoTest.cs
* System/BitConverterTest.cs.orig
* System/ConvertTest.cs
* System/TypeTest.cs
* System/AppDomainSetupTest.cs
* System/StringTest.cs
* System/BitConverterTest.cs
* System/AppDomainTest.cs
* System.Threading/ThreadTest.cs
* System.Security.Policy/ZoneTest.cs
* System.Runtime.Remoting/SynchronizationAttributeTest.cs
* System.Security.Permissions/FileIOPermissionTest.cs
* System.Security.Permissions/FileIOPermissionAttributeTest.cs
* System.Security.Permissions/SecurityPermissionTest.cs
* System.Reflection.Emit/TypeBuilderTest.cs
* System.Reflection/AssemblyTest.cs:

Make tests pass on MS DotNet

svn path=/trunk/mcs/; revision=38263
2005-01-03 04:29:52 +00:00
Lluis Sanchez 5bda6f1f2c * ThreadTest.cs, MutexTest.cs: Don't leave any thread alive, even if the
thread fails. Added a timeout to active waits.

svn path=/trunk/mcs/; revision=34247
2004-09-22 19:06:50 +00:00