summaryrefslogtreecommitdiff
path: root/tests/Cached_Allocator_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Cached_Allocator_Test.cpp')
-rw-r--r--tests/Cached_Allocator_Test.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/Cached_Allocator_Test.cpp b/tests/Cached_Allocator_Test.cpp
index 78cab3e70e4..0e5bcf5f28f 100644
--- a/tests/Cached_Allocator_Test.cpp
+++ b/tests/Cached_Allocator_Test.cpp
@@ -149,7 +149,6 @@ run_main (int argc, ACE_TCHAR *argv[])
size_t chunk_size = 0;
size_t n_chunks = 0;
size_t requested_size = 0;
- size_t depth = 0;
char *ptr1 = 0;
char *ptr2 = 0;
char *ptr3 = 0;
@@ -175,12 +174,6 @@ run_main (int argc, ACE_TCHAR *argv[])
DYNAMIC_ALLOCATOR allocator (n_chunks, chunk_size);
- if ((depth = allocator.pool_depth ()) != n_chunks)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Expected pool depth ") ACE_SIZE_T_FORMAT_SPECIFIER
- ACE_TEXT (" but reported ") ACE_SIZE_T_FORMAT_SPECIFIER
- ACE_TEXT ("\n"),
- n_chunks, depth));
requested_size = chunk_size;
ACE_DEBUG ((LM_INFO,
ACE_TEXT (" (%t) Allocating chunk 1: %d bytes, should succeed...\n"),
@@ -191,12 +184,6 @@ run_main (int argc, ACE_TCHAR *argv[])
ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT (" (%t) Failed, exiting.\n")), -1);
ACE_DEBUG ((LM_INFO, ACE_TEXT (" (%t) OK, succeeded.\n")));
- if ((depth = allocator.pool_depth ()) != (n_chunks - 1))
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Expected pool depth ") ACE_SIZE_T_FORMAT_SPECIFIER
- ACE_TEXT (" but reported ") ACE_SIZE_T_FORMAT_SPECIFIER
- ACE_TEXT ("\n"),
- n_chunks - 1, depth));
requested_size = chunk_size + 1;
ACE_DEBUG ((LM_INFO,
@@ -221,12 +208,6 @@ run_main (int argc, ACE_TCHAR *argv[])
ACE_DEBUG ((LM_INFO, ACE_TEXT (" (%t) OK, succeeded.\n")));
// One chunk too far...
- if ((depth = allocator.pool_depth ()) != 0)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Expected pool depth 0")
- ACE_TEXT (" but reported ") ACE_SIZE_T_FORMAT_SPECIFIER
- ACE_TEXT ("\n"),
- depth));
requested_size = chunk_size;
ACE_DEBUG ((LM_INFO,
ACE_TEXT (" (%t) Allocating chunk 4: %d bytes, no free chunks,")