diff options
author | Zoltan Varga <vargaz@gmail.com> | 2010-03-30 22:16:48 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2010-03-30 22:16:48 +0400 |
commit | 39fb339f77d89df270339681fa969de08e74de5b (patch) | |
tree | 94848c8e1e06f06a05a1907b5aeebd0088dc9ed0 /mcs | |
parent | 4fc39eebd4a8934e99277e9715af00473f4ca53b (diff) |
2010-03-30 Zoltan Varga <vargaz@gmail.com>
* test-106.cs: Move the wait for cb_state == 1 out of the try block so this
test becomes deterministic.
svn path=/trunk/mcs/; revision=154475
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/tests/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/tests/test-106.cs | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/mcs/tests/ChangeLog b/mcs/tests/ChangeLog index c9dca4ac6f8..7f64b9a0964 100644 --- a/mcs/tests/ChangeLog +++ b/mcs/tests/ChangeLog @@ -1,3 +1,8 @@ +2010-03-30 Zoltan Varga <vargaz@gmail.com> + + * test-106.cs: Move the wait for cb_state == 1 out of the try block so this + test becomes deterministic. + 2009-11-11 Scott Peterson <lunchtimemama@gmail.com> * gtest-469.cs: Added test for BGO 553655. diff --git a/mcs/tests/test-106.cs b/mcs/tests/test-106.cs index 4b6c0530ed3..6bdd6c1fade 100644 --- a/mcs/tests/test-106.cs +++ b/mcs/tests/test-106.cs @@ -30,16 +30,15 @@ class Test { ar1.AsyncWaitHandle.WaitOne (); try { - res = d.EndInvoke (ar1); - - while (cb_state == 0) - Thread.Sleep (0); - + res = d.EndInvoke (ar1); } catch (NotImplementedException) { res = 1; Console.WriteLine ("received exception ... OK"); } + while (cb_state == 0) + Thread.Sleep (0); + if (cb_state != 1) return 1; |