diff options
author | Marek Safar <marek.safar@gmail.com> | 2012-05-02 18:33:20 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2012-05-02 18:33:20 +0400 |
commit | fe4a00dd54704b9075391f0487bf84e1df969fa5 (patch) | |
tree | d2dbc295ef00d7048aea71b92d632a523412b8fb /mcs/tests/test-async-32.cs | |
parent | 26b54ed11ac25acb8f45764126ade6741ea008e6 (diff) |
Update wrong test
Diffstat (limited to 'mcs/tests/test-async-32.cs')
-rw-r--r-- | mcs/tests/test-async-32.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mcs/tests/test-async-32.cs b/mcs/tests/test-async-32.cs index 7c319926884..f0e3fc64870 100644 --- a/mcs/tests/test-async-32.cs +++ b/mcs/tests/test-async-32.cs @@ -52,16 +52,21 @@ class Program return 12; bool faulted = false; + bool has_exception = false; t = TestException().ContinueWith(l => { faulted = l.IsFaulted; + has_exception = l.Exception != null; // Has to observe it or will throw on shutdown }, TaskContinuationOptions.ExecuteSynchronously); if (!faulted) return 21; + + if (!has_exception) + return 22; if (t.Exception != null) - return 22; + return 23; Console.WriteLine("ok"); return 0; |