Add test for issue #66.
This commit is contained in:
parent
eb046e2295
commit
c88964337a
19
tests/issue-66-yield-eventloop-exit.d
Normal file
19
tests/issue-66-yield-eventloop-exit.d
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
/+ dub.sdl:
|
||||||
|
name "tests"
|
||||||
|
dependency "vibe-core" path=".."
|
||||||
|
+/
|
||||||
|
module tests;
|
||||||
|
|
||||||
|
import vibe.core.core;
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
bool visited = false;
|
||||||
|
runTask({
|
||||||
|
yield();
|
||||||
|
visited = true;
|
||||||
|
exitEventLoop();
|
||||||
|
});
|
||||||
|
runApplication();
|
||||||
|
assert(visited);
|
||||||
|
}
|
Loading…
Reference in a new issue