Remove unsupported test (#6820)

This commit is contained in:
Jack May
2019-11-08 11:37:47 -08:00
committed by GitHub
parent b800642fa4
commit dfc4d7cb50
2 changed files with 17 additions and 35 deletions

View File

@ -54,25 +54,6 @@ pub extern "C" fn entrypoint(_input: *mut u8) -> u32 {
alloc::alloc::dealloc(ptr, layout);
}
// TODO not supported bump allocator
// unsafe {
// // Test alloc all bytes and one more (assumes heap size of 2048)
// let layout = Layout::from_size_align(2048, mem::align_of::<u8>()).unwrap();
// let ptr = alloc::alloc::alloc(layout);
// if ptr.is_null() {
// info!("Error: Alloc of 2048 bytes failed");
// alloc::alloc::handle_alloc_error(layout);
// }
// let layout = Layout::from_size_align(1, mem::align_of::<u8>()).unwrap();
// let ptr_fail = alloc::alloc::alloc(layout);
// if !ptr_fail.is_null() {
// info!("Error: Able to alloc 1 more then max");
// panic!();
// }
// alloc::alloc::dealloc(ptr, layout);
// }
{
// Test allocated vector