Skip to content

Commit

Permalink
Merge pull request ARMmbed#15067 from ARMmbed/fix_flash_overflow_call…
Browse files Browse the repository at this point in the history
…back_big_test

Greentea: Fix flash overflown issue in callback_big test
  • Loading branch information
Patater authored Sep 14, 2021
2 parents 6fd39f4 + 77960d3 commit eff8fda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions platform/tests/TESTS/mbed_functional/callback/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include "utest.h"
#include <mstd_functional>

#define TEST_MIN_REQ_ROM_SIZE (36 * 1024)

using namespace utest::v1;

template <typename T>
Expand Down Expand Up @@ -884,8 +886,7 @@ Case cases[] = {
Case("Testing callbacks with 2 uint64s", test_dispatch2<uint64_t>),
Case("Testing callbacks with 3 uint64s", test_dispatch3<uint64_t>),
Case("Testing callbacks with 4 uint64s", test_dispatch4<uint64_t>),
// IAR currently crashes at link time with this test - skip it as it's well beyond anything needed by real code
#ifndef __ICCARM__
#if !defined(__ICCARM__) && (!defined(MBED_ROM_SIZE) || (MBED_ROM_SIZE >= TEST_MIN_REQ_ROM_SIZE))
Case("Testing callbacks with 5 uint64s", test_dispatch5<uint64_t>),
#endif
#elif DO_SMALL_TEST
Expand Down

0 comments on commit eff8fda

Please sign in to comment.