18 Commits
Author SHA1 Message Date
Larry Ewing 4790582812 [wasm] test cleanup (#15727)
* [wasm] stop excluding test_0_large_nullable_invoke on wasm

* [wasm] remove wasm exclusion from test_0_simple_double_casts

* Add category MultiThreaded to more of the concurrent collection tests

* Add more MultiThreaded annotations to HttpListener2Test

* Add category MultiThreaded to HttpWebRequestTest

* [wasm] flag more tests that are taking down the runtime

* [wasm] force sockets to throw PNSE in the ctor for now

* [wasm] enable corlib interpreter tests

* [wasm] Increase timeout for corlib tests

* try to fix wasm-cross-win-release-configure on macos
2019-09-10 13:08:58 -04:00
Alexander Köplinger b14dcc5163 [System] Bump timeout in TimerTest a bit
I saw this failing occasionally on iOS on Wrench:

```
[FAIL] TimerTest.AutoResetEventFalseStopsFiringElapsed :   #2 wrong elapsedCount
  Expected: 1
  But was:  0

	at MonoTests.System.Timers.TimerTest.AutoResetEventFalseStopsFiringElapsed () [0x00091] in /Users/builder/data/lanes/1411/b07703ed/source/xamarin-macios/external/mono/mcs/class/System/Test/System.Timers/TimerTest.cs:327 
	at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
	at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/data/lanes/1411/b07703ed/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:309 
```
2016-07-06 21:32:10 +02:00
Alexander Köplinger bab393e095 [System] Make TimerTest.EnabledInElapsed more reliable
We were seeing intermittent failures on devices like:

```
	[FAIL] TimerTest.EnabledInElapsed :   #1 loss of events
  Expected: True
  But was:  False

		  at MonoTests.System.Timers.TimerTest.EnabledInElapsed () <0x33b168 + 0x0014f> in <filename unknown>:0
		  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
		  at System.Reflection.MonoMethod.Invoke (System.Object , BindingFlags , System.Reflection.Binder , System.Object[] , System.Globalization.CultureInfo ) <0x66d400 + 0x000b7> in <filename unknown>:0
```

Since OS scheduling and GCs can influence the exact timing of the timer intervals sleeping for 200ms is likely just too short.
Instead of bumping the timeout, I decided to rewrite the test to not rely on Thread.Sleep ().
I also added another test which verifies setting AutoResetEvent=false stops the timer event from firing after the first one,
which was implicitly tested before by the other test.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=41530
2016-06-08 01:52:59 +02:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Marek Safar 02782f4a1a [system] System.Timer from reference sources 2015-01-15 10:05:50 +01:00
Marek Safar 8aa250524c Fix wrong time test 2014-08-20 09:01:57 +02:00
fengari b3251b6248 Do not dispose the underlying Timer every time the Enabled is set to false, keep it around for as long as this Timer exists. Throw ObjectDisposedException on Enabled setter. ArgumentException throwing according to docs. Removed 'disposed' field. DueTime for underlying timer changes only if enabled (as per docs). Check for already disposed in Dispose(). Not firing Elapsed if disposed. Unit tests. 2014-08-19 11:21:52 +03:00
Zoltan Varga b90ee8c262 2008-08-03 Zoltan Varga <[email protected]>
* TimerTest.cs: Simplify the EnabledInElapsed test to prevent various races.

svn path=/trunk/mcs/; revision=109506
2008-08-03 15:07:09 +00:00
Robert Jordan 14904e434f In Test/System.Timers:
2007-10-30  Robert Jordan  <[email protected]>

	* TimerTest.cs: Enable test for bug #82701/#325368.

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

	* Timer.cs (set_Enabled): Allow setting Enabled from within
	the Elapsed event handler. Fixes #325368.


svn path=/trunk/mcs/; revision=88437
2007-10-30 02:34:38 +00:00
Robert Jordan ba60cc0878 2007-09-06 Robert Jordan <[email protected]>
* TimerTest.cs: Factored our more test cases from bug #82701.


svn path=/trunk/mcs/; revision=85401
2007-09-06 10:30:35 +00:00
Gert Driesen c2a5d53b5f * TimerTest.cs: Added NotWorking test for bug #82701. Added ctor
and trivial property tests.

svn path=/trunk/mcs/; revision=85358
2007-09-05 13:14:24 +00:00
Robert Jordan b782480b93 Enable TestRaceCondition ().
svn path=/trunk/mcs/; revision=69728
2006-12-19 11:24:44 +00:00
Robert Jordan 95ce4d6ce1 2006-12-18 Robert Jordan <[email protected]>
* TimerTest.cs: Add NotWorking test case for bug #77847.


svn path=/trunk/mcs/; revision=69639
2006-12-18 03:06:06 +00:00
Kornél Pál 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +00:00
Sebastien Pouliot f80b81443d 2005-11-16 Sebastien Pouliot <[email protected]>
* TimersDescriptionAttributeCas.cs: Updated comments (thanks to Gert
	Driesen for the solution).
	* TimersDescriptionAttributeTest.cs: New. Unit tests to show that the
	description string is a resource name (and not the description itself)


svn path=/trunk/mcs/; revision=53138
2005-11-16 18:54:27 +00:00
Sebastien Pouliot b7746ad384 2005-11-16 Sebastien Pouliot <[email protected]>
* TimersDescriptionAttributeCas.cs: Fixed test as the Description
	property doesn't always returns null (exact conditions unknown).


svn path=/trunk/mcs/; revision=53124
2005-11-16 15:38:55 +00:00
Sebastien Pouliot 79a7722f38 2005-11-16 Sebastien Pouliot <[email protected]>
* ElapsedEventArgsCas.cs: New. CAS unit tests.
	* TimerCas.cs: New. CAS unit tests.
	* TimersDescriptionAttributeCas.cs: New. CAS unit tests.


svn path=/trunk/mcs/; revision=53119
2005-11-16 14:27:38 +00:00
Kornél Pál 7ecdf0d611 Added TimerTest.cs
svn path=/trunk/mcs/; revision=45140
2005-05-28 15:29:56 +00:00