Skip to content

Commit 4a2cfbe

Browse files
author
Cruz Monrreal
authored
Merge pull request #8484 from jeromecoutant/PR_SD_THREAD
Component SD test: skip multiple thread test depending on RAM
2 parents b09a843 + 7bfa6bd commit 4a2cfbe

File tree

1 file changed

+3
-0
lines changed
  • components/storage/blockdevice/COMPONENT_SD/TESTS/filesystem/parallel

1 file changed

+3
-0
lines changed

components/storage/blockdevice/COMPONENT_SD/TESTS/filesystem/parallel/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ void read_file_data (char count)
154154

155155
void test_thread_access_test()
156156
{
157+
char *dummy = new (std::nothrow) char[OS_STACK_SIZE * MBED_THREAD_COUNT];
158+
delete[] dummy;
159+
TEST_SKIP_UNLESS_MESSAGE(dummy, "Not enough memory to run test");
157160

158161
Thread *data[MBED_THREAD_COUNT];
159162
int res = bd.init();

0 commit comments

Comments
 (0)