projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77dd979
)
Fix a timing issue in a test
author
Zoltan Varga
<vargaz@gmail.com>
Tue, 6 Sep 2011 21:06:03 +0000
(23:06 +0200)
committer
Zoltan Varga
<vargaz@gmail.com>
Tue, 20 Sep 2011 01:52:26 +0000
(
03:52
+0200)
mono/tests/stackframes-async.2.cs
patch
|
blob
|
history
diff --git
a/mono/tests/stackframes-async.2.cs
b/mono/tests/stackframes-async.2.cs
index a984554a9d0aa010e44e99d24081802b48b1e7bb..61342fee15282d5bf51b8538b61c064128710363 100644
(file)
--- a/
mono/tests/stackframes-async.2.cs
+++ b/
mono/tests/stackframes-async.2.cs
@@
-9,7
+9,11
@@
using System.Diagnostics;
{
AsyncCallback cback = new AsyncCallback(ResolveCallback);
IAsyncResult res = Dns.BeginGetHostEntry("localhost", cback, null);
- System.Threading.Thread.Sleep(2000);
+ for (int i = 0; i < 100; ++i) {
+ if (frame_count != 0)
+ break;
+ System.Threading.Thread.Sleep(100);
+ }
/*
* seems to be broken
while (!res.IsCompleted) {