diff --git a/upptst/Memory/Memory.cpp b/upptst/Memory/Memory.cpp index 44d689d4c..fca6a4a88 100644 --- a/upptst/Memory/Memory.cpp +++ b/upptst/Memory/Memory.cpp @@ -9,7 +9,9 @@ void Test(int ini, int re) byte *h = new byte[ini]; RDUMP(GetMemoryBlockSize(h)); - RDUMP(TryRealloc(h, re)); + size_t sz = re; + RDUMP(MemoryTryRealloc(h, sz)); + RDUMP(sz); RDUMP(GetMemoryBlockSize(h)); delete[] h; @@ -17,6 +19,8 @@ void Test(int ini, int re) CONSOLE_APP_MAIN { + StdLogSetup(LOG_COUT|LOG_FILE); + Test(200, 220); Test(194, 204); Test(2000, 2070); diff --git a/upptst/Realloc/Realloc.cpp b/upptst/Realloc/Realloc.cpp deleted file mode 100644 index fd2bdc205..000000000 --- a/upptst/Realloc/Realloc.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include - -using namespace Upp; - -CONSOLE_APP_MAIN -{ - void *ptr = MemoryAlloc(400); - DDUMP(TryRealloc(ptr, 420)); - DDUMP(TryRealloc(ptr, 1000)); - - MemoryFree(ptr); - - ptr = MemoryAlloc(2000); - DDUMP(TryRealloc(ptr, 4000)); - DDUMP(TryRealloc(ptr, 200)); - DDUMP(TryRealloc(ptr, 200000)); - - MemoryFree(ptr); -} diff --git a/upptst/Realloc/Realloc.upp b/upptst/Realloc/Realloc.upp deleted file mode 100644 index 8bb3fe36f..000000000 --- a/upptst/Realloc/Realloc.upp +++ /dev/null @@ -1,9 +0,0 @@ -uses - Core; - -file - Realloc.cpp; - -mainconfig - "" = ""; -