Commit Graph
22 Commits
Author SHA1 Message Date
Sebastien Pouliot 7885214216 Use more detailled assert messages in some, randomly failing, Timer unit tests (to help track #14305) 2013-10-02 16:28:12 -04:00
Zoltan Varga 119df901c2 Disable a corlib test which fails on some test runners. 2013-09-04 17:32:01 +02:00
Sebastien Pouliot 0b09bfc495 Disable TestDisposeOnCallback for MONOTOUCH, the test does not really work as the state is null (and throws in a separate thread) 2013-07-19 09:38:58 -04:00
Martin Baulig 6354893b8c Fix race condition in TimerTest.TestChange().
Set the first interval to 10 milleseconds, not just one.  Then read
the bucket.count again after changing the interval, the callback may
fire a few times while we execute the Assert() and t.Change() callls.
2012-06-26 18:52:07 +02:00
Sebastien Pouliot f3506a6f99 In System.Threading:
2009-10-20  Sebastien Pouliot  <[email protected]>

	* Timer.cs: Always call Init from every constructors to avoid 
	duplicate checks. Fix validations on different dueTime and period
	(ctor and Change methods). Seal private TimerComparer class and
	avoid multiple (identical) casts in its Compare method. Seal 
	private Scheduler class.

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

	* TimerTest.cs: Add more validation tests


svn path=/trunk/mcs/; revision=144466
2009-10-20 15:52:42 +00:00
Gonzalo Paniagua Javier 0d6effc8d8 fix test
svn path=/trunk/mcs/; revision=137040
2009-06-28 03:50:35 +00:00
Zoltan Varga d87e651623 2008-10-11 Zoltan Varga <[email protected]>
* TimerTest.cs (TestChange): Modify a constant to avoid a random assert.

svn path=/trunk/mcs/; revision=115511
2008-10-11 08:15:42 +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
Zoltan Varga 8ddff2946e 2008-06-04 Zoltan Varga <[email protected]>
* TimerTest.cs (Callback): Use Interlocked Increment to increase the counter.

svn path=/trunk/mcs/; revision=104817
2008-06-04 00:08:30 +00:00
Paolo Molaro 10f5121f53 2007-09-14 Jb Evain <[email protected]>
* Makefile: force the use of the 2.0 mscorlib to compile
	the 2.1 mscorlib.dll.


svn path=/trunk/mcs/; revision=89215
2007-11-08 17:16:46 +00:00
Raja R Harinath b951f53c4b * TimerTest.cs (TestHeavyCreationLoad): Don't shadow a variable name.
svn path=/trunk/mcs/; revision=87843
2007-10-19 19:25:58 +00:00
Paolo Molaro c14dff24d5 More time-dependent fixing.
svn path=/trunk/mcs/; revision=87834
2007-10-19 15:59:13 +00:00
Paolo Molaro 72dd06a302 Relax the success criteria for a timing-dependent test.
svn path=/trunk/mcs/; revision=87648
2007-10-17 11:06:59 +00:00
Paolo Molaro 37b557ff3f Timer test cases from Rafael Ferreira ([email protected]).
svn path=/trunk/mcs/; revision=87566
2007-10-16 10:01:30 +00:00
Gert Driesen f81996a0c4 * TimerTest.cs: Corrected bug number (from #78202 to #78208).
* ChangeLog: Same.

svn path=/trunk/mcs/; revision=60102
2006-04-30 18:29:15 +00:00
Gert Driesen 2a73ea1ab3 * TimerTest.cs: Added test for bug #78202. Marked individual tests
NotWorking instead of the test class to enable test for bug #78202.

svn path=/trunk/mcs/; revision=60099
2006-04-30 09:40:16 +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 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 2423945096 2005-02-16 Ben Maurer <[email protected]>
* TimerTest.cs: Disable this test. It seems to be completely
	unreliable, likely because it depends on a race. See comment in
	the source.


svn path=/trunk/mcs/; revision=40780
2005-02-17 00:54:48 +00:00
Ben Maurer c86c6fc1b5 remove unreliable stuff
svn path=/trunk/mcs/; revision=40536
2005-02-12 16:09:18 +00:00
Lluis Sanchez 142390ed0a * TimerTest.cs: Added more tests.
* ThreadTest.cs: Added new tests for Thread.Suspend.

svn path=/trunk/mcs/; revision=29556
2004-06-14 21:49:38 +00:00
Zoltan Varga 588e491fc8 2004-04-09 Zoltan Varga <[email protected]>
* TimerTest.cs: Beginnings of regression tests for the Timer class.

svn path=/trunk/mcs/; revision=25246
2004-04-09 13:16:16 +00:00