Commit Graph
15 Commits
Author SHA1 Message Date
Zoltan Varga dd2b784606 [bcl] Increase some test timeouts to avoid failures when running with llvm. 2014-07-08 00:46:31 +02:00
Rodrigo Kumpera a89b144a7d [corlib] Fix the 4.5 test suite. 2014-02-12 19:12:03 -05:00
Rodrigo Kumpera 51d2b75664 [corlib] Fix 4.0 test suite compilation. 2014-02-12 18:53:10 -05:00
Marek Safar 661af380c3 [corlib] Fixes race in disposing CancellationTokenSource. Fixes #17256 2014-01-17 21:04:08 +01:00
Andrea Canciani 0ac0c15211 Add testcases for callback and exception ordering
Translated from the F# testcases available here
https://github.com/fsharp/fsharp/blob/19507b98bc6a7995e9c19c40f044fdfeb578ef77/src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Control/Cancellation.fs#L100
2013-12-31 22:01:27 +01:00
Andrea Canciani 33178ca69c Fix CancellationTokenSourceTest.ReEntrantRegistrationTest
This test run on .NET would result in both "unregister" and "register"
set to a "true" value. In order to ensure that the "unregister = true"
fragment is not executed, its disposal needs to be registered after,
because on .NET the CancellationTokenSource has a LIFO behavior.

This change simplifies the code and makes the expected behavior
consistent with that of .NET.
2013-12-31 22:00:34 +01:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Jeremie Laval ed68f88573 [corlib] Dont use blocking wait call in CancellationTokenSource test 2012-07-23 16:49:55 +01:00
Jérémie Laval 75222a62c5 [corlib] Linked token callback to the proxy CancellationTokenSource shouldn't throw ODE in concurrent situations. 2012-07-23 12:48:40 +01:00
Jérémie Laval 253c5fb1d3 [corlib] Dispose linked tokens connections when disposing the resulting CancellationTokenSource
Based on baulig's patch: https://github.com/baulig/mono/commit/3ee4f7600b8efe61f7a701a93fffed8373b7b4b3
2012-07-23 11:48:55 +01:00
Marek Safar d5a78c50c1 Fix CancellationTokenSource cancellation during Dispose 2012-06-11 16:02:39 +01:00
Jeremie Laval b0dcb61630 [corlib] Fix NullRef when using dispose a CancellationTokenRegistration when the initial source has been disposed 2012-05-16 11:50:17 +01:00
Jeremie Laval 7167f57c4d Rework CancellationTokenSource to remove locking. Fix #4173.
Issue reported by MartinG, unit test code based on his repro.
2012-04-10 12:39:03 +01:00
Jeremie Laval b8abfaae4e Update copyrights 2012-04-10 12:39:02 +01:00
Marek Safar bd98012400 Fix subtle issues with CancellationTokenSource and implement 4.5 methods 2011-11-07 17:18:26 +00:00