File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments