Merge pull request #15067 from ARMmbed/fix_flash_overflow_callback_big_test

Greentea: Fix flash overflown issue in callback_big test
pull/15073/head
Jaeden Amero 2021-09-14 17:04:13 +01:00 committed by GitHub
commit eff8fda16c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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>
@ -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