From 3a9b977dc4bce7387943523b0e2e57d8e759d359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 24 Oct 2016 08:37:32 +0200 Subject: [PATCH] Fix test dependency paths. --- tests/std.concurrency.d | 18 +++++++----------- tests/vibe.core.net.1429.d | 2 +- tests/vibe.core.net.1441.d | 2 +- tests/vibe.core.net.1452.d | 2 +- 4 files changed, 10 insertions(+), 14 deletions(-) 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;