diff --git a/tests/std.concurrency.d b/tests/std.concurrency.d index 891dc8f..f7733e5 100644 --- a/tests/std.concurrency.d +++ b/tests/std.concurrency.d @@ -1,16 +1,10 @@ -/++ dub.json: -{ - "name": "test", - "description": "Tests vibe.d's std.concurrency integration", - "dependencies": { - "vibe-core": {"path": "../../"} - }, - "versions": ["VibeDefaultMain"] -} +/++ dub.sdl: + name "test" + description "Tests vibe.d's std.concurrency integration" + dependency "vibe-core" path="../" +/ module test; -import vibe.appmain; import vibe.core.core; import vibe.core.log; import std.concurrency; @@ -21,7 +15,7 @@ import core.stdc.stdlib : exit; __gshared Tid t1, t2; shared watchdog_count = 0; -shared static this() +void main() { t1 = spawn({ // ensure that asynchronous operations run in parallel to receive() @@ -90,4 +84,6 @@ shared static this() logInfo("Exiting."); exitEventLoop(true); }); + + runApplication(); } diff --git a/tests/vibe.core.net.1429.d b/tests/vibe.core.net.1429.d index bc68283..a81e9f0 100644 --- a/tests/vibe.core.net.1429.d +++ b/tests/vibe.core.net.1429.d @@ -1,7 +1,7 @@ /++ dub.sdl: name "test" description "TCP disconnect task issue" -dependency "vibe-core" path="../../" +dependency "vibe-core" path="../" +/ module test; diff --git a/tests/vibe.core.net.1441.d b/tests/vibe.core.net.1441.d index 7e73baf..b5c3d6b 100644 --- a/tests/vibe.core.net.1441.d +++ b/tests/vibe.core.net.1441.d @@ -1,7 +1,7 @@ /++ dub.sdl: name "test" description "TCP disconnect task issue" -dependency "vibe-core" path="../../" +dependency "vibe-core" path="../" +/ module test; diff --git a/tests/vibe.core.net.1452.d b/tests/vibe.core.net.1452.d index 4c7b7f5..1a6023c 100644 --- a/tests/vibe.core.net.1452.d +++ b/tests/vibe.core.net.1452.d @@ -1,7 +1,7 @@ /++ dub.sdl: name "test" description "Invalid memory operation on TCP connection leakage at shutdown" -dependency "vibe-core" path="../../" +dependency "vibe-core" path="../" +/ module test;