File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
TESTS/mbed_platform/stats_sys Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,16 @@ void test_sys_info()
47
47
TEST_ASSERT_NOT_EQUAL (0 , stats.compiler_version );
48
48
49
49
// RAM / ROM sizes should not be zero and should match the define
50
- TEST_ASSERT_NOT_EQUAL ( 0 , stats. ram_size [ 0 ]);
50
+ # if defined(MBED_ROM_START) && defined(MBED_ROM_SIZE)
51
51
TEST_ASSERT_NOT_EQUAL (0 , stats.rom_size [0 ]);
52
-
53
- TEST_ASSERT_EQUAL (MBED_RAM_SIZE, stats.ram_size [0 ]);
54
52
TEST_ASSERT_EQUAL (MBED_ROM_SIZE, stats.rom_size [0 ]);
55
- TEST_ASSERT_EQUAL (MBED_RAM_START, stats.ram_start [0 ]);
56
53
TEST_ASSERT_EQUAL (MBED_ROM_START, stats.rom_start [0 ]);
57
-
54
+ #endif
55
+ #if defined(MBED_RAM_START) && defined(MBED_RAM_SIZE)
56
+ TEST_ASSERT_NOT_EQUAL (0 , stats.ram_size [0 ]);
57
+ TEST_ASSERT_EQUAL (MBED_RAM_START, stats.ram_start [0 ]);
58
+ TEST_ASSERT_EQUAL (MBED_RAM_SIZE, stats.ram_size [0 ]);
59
+ #endif
58
60
#if defined(MBED_RAM1_START) && defined(MBED_RAM1_SIZE)
59
61
TEST_ASSERT_NOT_EQUAL (0 , stats.ram_size [1 ]);
60
62
TEST_ASSERT_EQUAL (MBED_RAM1_SIZE, stats.ram_size [1 ]);
You can’t perform that action at this time.
0 commit comments