From bd860d71d7c57c3bbebd82e802c745f56333201d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?So=CC=88nke=20Ludwig?= Date: Sun, 22 Jan 2017 21:03:38 +0100 Subject: [PATCH] Fix syntax errors in tests. --- tests/0-dirwatcher.d | 4 +++- tests/0-signal.d | 4 +++- tests/0-tcp-readwait.d | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/0-dirwatcher.d b/tests/0-dirwatcher.d index 6649294..e6e599b 100644 --- a/tests/0-dirwatcher.d +++ b/tests/0-dirwatcher.d @@ -17,7 +17,7 @@ enum testFilename = "test.dat"; void main() { version (OSX) writefln("Directory watchers are not yet supported on macOS. Skipping test."); - else: + else { if (exists(testFilename)) remove(testFilename); @@ -66,4 +66,6 @@ void main() //assert(er == ExitReason.outOfWaiters); // FIXME: see above assert(s_done); s_done = false; + + } } diff --git a/tests/0-signal.d b/tests/0-signal.d index ce6313c..4f4586b 100644 --- a/tests/0-signal.d +++ b/tests/0-signal.d @@ -15,7 +15,7 @@ bool s_done; void main() { version (OSX) writefln("Signals are not yet supported on macOS. Skipping test."); - else: + else { auto id = eventDriver.signals.listen(SIGRTMIN+1, (id, status, sig) { assert(!s_done); @@ -37,4 +37,6 @@ void main() //assert(er == ExitReason.outOfWaiters); // FIXME: see above assert(s_done); s_done = false; + + } } diff --git a/tests/0-tcp-readwait.d b/tests/0-tcp-readwait.d index 87c5d34..e599753 100644 --- a/tests/0-tcp-readwait.d +++ b/tests/0-tcp-readwait.d @@ -18,7 +18,7 @@ void main() import std.stdio; writeln("This doesn't work on macOS. Skipping this test until it is determined that this special case should stay supported."); return; - } else: + } else { static ubyte[] pack1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; @@ -70,4 +70,6 @@ void main() //assert(er == ExitReason.outOfWaiters); // FIXME: see above assert(s_done); s_done = false; + + } }