Skip to content

Commit 86b7987

Browse files
Removed some of the unit tests (those using incorrect partition_sz parameter value) introduced with (#53)
1 parent 492f9a8 commit 86b7987

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

test/test_simple_seg_storage.cpp

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -315,44 +315,6 @@ int main()
315315
BOOST_TEST(nchunks == 2);
316316
}
317317

318-
{
319-
char* const pc = track_allocator::malloc(4 * partition_sz);
320-
test_simp_seg_store tstore;
321-
tstore.add_ordered_block(pc, 4 * partition_sz, partition_sz);
322-
323-
void* pvret = tstore.malloc_n(1, 2 * partition_sz);
324-
BOOST_TEST(pvret == 0);
325-
326-
// There should still be two contiguous
327-
// and one non-contiguous chunk left
328-
std::size_t nchunks = 0;
329-
while(!tstore.empty())
330-
{
331-
tstore.malloc();
332-
++nchunks;
333-
}
334-
BOOST_TEST(nchunks == 4);
335-
}
336-
337-
{
338-
char* const pc = track_allocator::malloc(4 * partition_sz);
339-
test_simp_seg_store tstore;
340-
tstore.add_ordered_block(pc, 4 * partition_sz, partition_sz);
341-
342-
void* pvret = tstore.malloc_n(2, 2 * partition_sz);
343-
BOOST_TEST(pvret == 0);
344-
345-
// There should still be two contiguous
346-
// and one non-contiguous chunk left
347-
std::size_t nchunks = 0;
348-
while(!tstore.empty())
349-
{
350-
tstore.malloc();
351-
++nchunks;
352-
}
353-
BOOST_TEST(nchunks == 4);
354-
}
355-
356318
{
357319
char* const pc = track_allocator::malloc(12 * partition_sz);
358320
test_simp_seg_store tstore;

0 commit comments

Comments
 (0)