Skip to content

Commit dcd0e6b

Browse files
committed
Workaround for insufficient heap on IAR+MTB_xDOT_GT
We currently don't have a mechanism for selecting tests based on the available ram/heap, so the best solution right now is to disable these tests specifically for this target.
1 parent ba93270 commit dcd0e6b

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

features/TESTS/filesystem/heap_block_device/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323

2424
using namespace utest::v1;
2525

26+
// TODO HACK, replace with available ram/heap property
27+
#if defined(TARGET_MTB_MTS_XDOT)
28+
#error [NOT_SUPPORTED] Insufficient heap for heap block device tests
29+
#endif
30+
2631
#define TEST_BLOCK_SIZE 128
2732
#define TEST_BLOCK_DEVICE_SIZE 32*TEST_BLOCK_SIZE
2833
#define TEST_BLOCK_COUNT 10

features/TESTS/filesystem/mbr_block_device/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424

2525
using namespace utest::v1;
2626

27+
// TODO HACK, replace with available ram/heap property
28+
#if defined(TARGET_MTB_MTS_XDOT)
29+
#error [NOT_SUPPORTED] Insufficient heap for heap block device tests
30+
#endif
31+
2732
#define BLOCK_COUNT 16
2833
#define BLOCK_SIZE 512
2934

features/TESTS/filesystem/util_block_device/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626

2727
using namespace utest::v1;
2828

29+
// TODO HACK, replace with available ram/heap property
30+
#if defined(TARGET_MTB_MTS_XDOT)
31+
#error [NOT_SUPPORTED] Insufficient heap for heap block device tests
32+
#endif
33+
2934
#define BLOCK_COUNT 16
3035
#define BLOCK_SIZE 512
3136

0 commit comments

Comments
 (0)