Component SD test: skip multiple thread test depending on RAM

pull/8637/head
jeromecoutant 2018-10-19 16:13:57 +02:00 committed by Cruz Monrreal II
parent 429fa35539
commit 53f2175246
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()
{
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];
int res = bd.init();