Fix syntax errors in tests.

This commit is contained in:
Sönke Ludwig 2017-01-22 21:03:38 +01:00
parent 3c7e1a783d
commit bd860d71d7
3 changed files with 9 additions and 3 deletions

View file

@ -17,7 +17,7 @@ enum testFilename = "test.dat";
void main() void main()
{ {
version (OSX) writefln("Directory watchers are not yet supported on macOS. Skipping test."); version (OSX) writefln("Directory watchers are not yet supported on macOS. Skipping test.");
else: else {
if (exists(testFilename)) if (exists(testFilename))
remove(testFilename); remove(testFilename);
@ -66,4 +66,6 @@ void main()
//assert(er == ExitReason.outOfWaiters); // FIXME: see above //assert(er == ExitReason.outOfWaiters); // FIXME: see above
assert(s_done); assert(s_done);
s_done = false; s_done = false;
}
} }

View file

@ -15,7 +15,7 @@ bool s_done;
void main() void main()
{ {
version (OSX) writefln("Signals are not yet supported on macOS. Skipping test."); version (OSX) writefln("Signals are not yet supported on macOS. Skipping test.");
else: else {
auto id = eventDriver.signals.listen(SIGRTMIN+1, (id, status, sig) { auto id = eventDriver.signals.listen(SIGRTMIN+1, (id, status, sig) {
assert(!s_done); assert(!s_done);
@ -37,4 +37,6 @@ void main()
//assert(er == ExitReason.outOfWaiters); // FIXME: see above //assert(er == ExitReason.outOfWaiters); // FIXME: see above
assert(s_done); assert(s_done);
s_done = false; s_done = false;
}
} }

View file

@ -18,7 +18,7 @@ void main()
import std.stdio; import std.stdio;
writeln("This doesn't work on macOS. Skipping this test until it is determined that this special case should stay supported."); writeln("This doesn't work on macOS. Skipping this test until it is determined that this special case should stay supported.");
return; return;
} else: } else {
static ubyte[] pack1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; 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(er == ExitReason.outOfWaiters); // FIXME: see above
assert(s_done); assert(s_done);
s_done = false; s_done = false;
}
} }