Imported Upstream version 3.8.0

Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
This commit is contained in:
Jo Shields
2014-09-04 09:07:35 +01:00
parent a575963da9
commit fe777c5c82
1062 changed files with 12460 additions and 5983 deletions

View File

@ -276,7 +276,7 @@ namespace MonoTests.System.Threading.Tasks
tasks[i] = Task.Factory.StartNew (delegate { Thread.Sleep (0); });
}
Assert.IsTrue (Task.WaitAll (tasks, 2000));
Assert.IsTrue (Task.WaitAll (tasks, 5000));
}
}
@ -904,7 +904,11 @@ namespace MonoTests.System.Threading.Tasks
args.SetObserved ();
};
var inner = new ApplicationException ();
Task.Factory.StartNew (() => { throw inner; });
Thread t = new Thread (delegate () {
Task.Factory.StartNew (() => { Console.WriteLine ("HIT!"); throw inner; });
});
t.Start ();
t.Join ();
Thread.Sleep (1000);
GC.Collect ();
Thread.Sleep (1000);
@ -1928,7 +1932,7 @@ namespace MonoTests.System.Threading.Tasks
}
[Test]
[Category("MobileNotWorking")]
[Category("NotWorking")]
public void TaskContinuationChainLeak()
{
// Start cranking out tasks, starting each new task upon completion of and from inside the prior task.