Browse Source

* Make sure that the thread has been started, before destroying the event.

git-svn-id: branches/targetandroid@23391 -
yury 12 years ago
parent
commit
5254f8e572
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/test/tbrtlevt.pp

+ 1 - 0
tests/test/tbrtlevt.pp

@@ -125,6 +125,7 @@ begin
   basiceventdestroy(event);
   basiceventdestroy(event);
 {$else}
 {$else}
   help:=thelper.create(o_waittimeoutabandon);
   help:=thelper.create(o_waittimeoutabandon);
+  sleep(100); // make sure that thread has been started
   basiceventdestroy(event);
   basiceventdestroy(event);
   help.waitfor;
   help.waitfor;
   help.free;
   help.free;