summaryrefslogtreecommitdiffstats
path: root/tests/ChunkData/Coordinates.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ChunkData/Coordinates.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/ChunkData/Coordinates.cpp b/tests/ChunkData/Coordinates.cpp
index f02b68d40..f94532183 100644
--- a/tests/ChunkData/Coordinates.cpp
+++ b/tests/ChunkData/Coordinates.cpp
@@ -6,6 +6,8 @@
int main(int argc, char** argv)
{
+ class cStarvationCallbacks
+ : public cAllocationPool<cChunkData::sChunkSection,1600>::cStarvationCallbacks
{
cChunkData buffer;
@@ -105,7 +107,7 @@ int main(int argc, char** argv)
}
{
- cChunkData buffer;
+ cChunkData buffer(Pool);
// Zero's
buffer.SetBlock(0, 0, 0, 0x0);
@@ -122,9 +124,9 @@ int main(int argc, char** argv)
{
// Operator =
- cChunkData buffer;
+ cChunkData buffer(Pool);
buffer.SetBlock(0, 0, 0, 0x42);
- cChunkData copy;
+ cChunkData copy(Pool);
#if __cplusplus < 201103L
copy = buffer;
#else
@@ -136,7 +138,7 @@ int main(int argc, char** argv)
#else
copy = std::move(copy);
#endif
- testassert(copy.GetBlock(0, 0, 0) == 0x42);
+ testassert(copy.GetBlock(0,0,0) == 0x42);
}
return 0;