From c88964337ad05caae04f31f0d88ef9b33bef861f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 6 Mar 2018 23:39:57 +0100 Subject: [PATCH] Add test for issue #66. --- tests/issue-66-yield-eventloop-exit.d | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/issue-66-yield-eventloop-exit.d diff --git a/tests/issue-66-yield-eventloop-exit.d b/tests/issue-66-yield-eventloop-exit.d new file mode 100644 index 0000000..dd7ae64 --- /dev/null +++ b/tests/issue-66-yield-eventloop-exit.d @@ -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); +}