Merge pull request #8484 from jeromecoutant/PR_SD_THREAD

Component SD test: skip multiple thread test depending on RAM
pull/8495/head
Cruz Monrreal 2018-10-22 11:41:08 -05:00 committed by GitHub
commit 4a2cfbed77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();