@@ -270,7 +270,7 @@ void msd_process(USBMSD *msd)
270
270
*/
271
271
void storage_init ()
272
272
{
273
- TEST_ASSERT_MESSAGE (mbed_heap_size >= MIN_HEAP_SIZE, " Not enough heap memory for HeapBlockDevice creation" );
273
+ TEST_SKIP_UNLESS_MESSAGE (mbed_heap_size >= MIN_HEAP_SIZE, " Not enough heap memory for HeapBlockDevice creation" );
274
274
FATFileSystem::format (get_heap_block_device ());
275
275
bool result = prepare_storage (get_heap_block_device (), &heap_fs);
276
276
TEST_ASSERT_MESSAGE (result, " heap storage initialisation failed" );
@@ -457,13 +457,13 @@ void mount_unmount_and_data_test(BlockDevice *bd, FileSystem *fs)
457
457
458
458
void heap_block_device_mount_unmount_test ()
459
459
{
460
- TEST_ASSERT_MESSAGE (mbed_heap_size >= MIN_HEAP_SIZE, " Not enough heap memory for HeapBlockDevice creation" );
460
+ TEST_SKIP_UNLESS_MESSAGE (mbed_heap_size >= MIN_HEAP_SIZE, " Not enough heap memory for HeapBlockDevice creation" );
461
461
mount_unmount_test<3 >(get_heap_block_device (), &heap_fs);
462
462
}
463
463
464
464
void heap_block_device_mount_unmount_and_data_test ()
465
465
{
466
- TEST_ASSERT_MESSAGE (mbed_heap_size >= MIN_HEAP_SIZE, " Not enough heap memory for HeapBlockDevice creation" );
466
+ TEST_SKIP_UNLESS_MESSAGE (mbed_heap_size >= MIN_HEAP_SIZE, " Not enough heap memory for HeapBlockDevice creation" );
467
467
mount_unmount_and_data_test (get_heap_block_device (), &heap_fs);
468
468
}
469
469
@@ -478,6 +478,7 @@ Case cases[] = {
478
478
utest::v1::status_t greentea_test_setup (const size_t number_of_cases)
479
479
{
480
480
GREENTEA_SETUP (300 , " pyusb_msd" );
481
+ utest_printf (" mbed_heap_size %u MIN_HEAP_SIZE %u\n " , mbed_heap_size, MIN_HEAP_SIZE);
481
482
utest::v1::status_t status = greentea_test_setup_handler (number_of_cases);
482
483
TestUSBMSD::setup_serial_number ();
483
484
return status;
0 commit comments