diff --git a/source/tanya/async/loop.d b/source/tanya/async/loop.d index a87eab3..b56118f 100644 --- a/source/tanya/async/loop.d +++ b/source/tanya/async/loop.d @@ -173,7 +173,7 @@ abstract class Loop return 128U; } - private unittest + @nogc @system unittest { auto loop = defaultAllocator.make!TestLoop; assert(loop.maxEvents == 64); @@ -226,7 +226,7 @@ abstract class Loop this.done = true; } - private unittest + @nogc @system unittest { auto loop = defaultAllocator.make!TestLoop; assert(loop.done); @@ -237,7 +237,7 @@ abstract class Loop defaultAllocator.dispose(loop); } - private unittest + @nogc @system unittest { auto loop = defaultAllocator.make!TestLoop; auto watcher = defaultAllocator.make!DummyWatcher; @@ -327,7 +327,7 @@ abstract class Loop blockTime_ = blockTime; } - private unittest + @nogc @system unittest { auto loop = defaultAllocator.make!TestLoop; assert(loop.blockTime == 1.dur!"minutes"); @@ -417,7 +417,7 @@ do private Loop defaultLoop_; -private unittest +@nogc @system unittest { auto oldLoop = defaultLoop_; auto loop = defaultAllocator.make!TestLoop; diff --git a/source/tanya/container/buffer.d b/source/tanya/container/buffer.d index c0fa019..a4ffebc 100644 --- a/source/tanya/container/buffer.d +++ b/source/tanya/container/buffer.d @@ -164,7 +164,7 @@ struct ReadBuffer(T = ubyte) } /// - @nogc nothrow pure unittest + @nogc nothrow pure @system unittest { ReadBuffer!ubyte b; size_t numberRead; @@ -196,7 +196,7 @@ struct ReadBuffer(T = ubyte) } /// - @nogc nothrow pure unittest + @nogc nothrow pure @system unittest { ReadBuffer!ubyte b; size_t numberRead; @@ -271,7 +271,7 @@ struct ReadBuffer(T = ubyte) } /// - @nogc nothrow pure unittest + @nogc nothrow pure @system unittest { ReadBuffer!ubyte b; size_t numberRead; @@ -398,7 +398,7 @@ struct WriteBuffer(T = ubyte) alias opDollar = length; /// - @nogc nothrow pure unittest + @nogc nothrow pure @system unittest { auto b = WriteBuffer!ubyte(4); ubyte[3] buf = [48, 23, 255]; @@ -570,7 +570,7 @@ struct WriteBuffer(T = ubyte) } /// - @nogc nothrow pure unittest + @nogc nothrow pure @system unittest { auto b = WriteBuffer!ubyte(6); ubyte[6] buf = [23, 23, 255, 128, 127, 9]; @@ -609,7 +609,7 @@ struct WriteBuffer(T = ubyte) } /// - @nogc nothrow pure unittest + @nogc nothrow pure @system unittest { auto b = WriteBuffer!ubyte(6); ubyte[6] buf = [23, 23, 255, 128, 127, 9]; @@ -652,7 +652,7 @@ struct WriteBuffer(T = ubyte) static assert(is(typeof(WriteBuffer!int(5)))); } -@nogc nothrow pure unittest +@nogc nothrow pure @system unittest { auto b = WriteBuffer!ubyte(4); ubyte[3] buf = [48, 23, 255]; @@ -674,7 +674,7 @@ struct WriteBuffer(T = ubyte) && b.buffer_[2] == 48 && b.buffer_[3] == 23 && b.buffer_[4] == 255); } -@nogc nothrow pure unittest +@nogc nothrow pure @system unittest { auto b = WriteBuffer!ubyte(2); ubyte[3] buf = [48, 23, 255];