Component SD test: skip multiple thread test depending on RAM

pull/8484/head
jeromecoutant 2018-10-19 16:13:57 +02:00
parent 83dada3bdc
commit 7bfa6bdcaf
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,9 @@ void read_file_data (char count)
void test_thread_access_test() void test_thread_access_test()
{ {
char *dummy = new (std::nothrow) char[OS_STACK_SIZE * MBED_THREAD_COUNT];
delete[] dummy;
TEST_SKIP_UNLESS_MESSAGE(dummy, "Not enough memory to run test");
Thread *data[MBED_THREAD_COUNT]; Thread *data[MBED_THREAD_COUNT];
int res = bd.init(); int res = bd.init();