Skip to content

Commit c9ac486

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
move test skipping macro for FastModels to top of the test
1 parent 0ad1934 commit c9ac486

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

TESTS/mbed_drivers/ticker/main.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ void test_case_1x_ticker()
145145
*/
146146
void test_case_2x_ticker()
147147
{
148-
#if defined(__ARM_FM)
149-
TEST_SKIP_MESSAGE("FastModels not support time drifting test")
150-
#endif
151-
152148
char _key[11] = { };
153149
char _value[128] = { };
154150
int expected_key = 1;

TESTS/mbed_hal/common_tickers_freq/main.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
#error [NOT_SUPPORTED] test not supported
3434
#endif
3535

36+
//FastModels not support time drifting test
37+
#if defined(__ARM_FM)
38+
#error [NOT_SUPPORTED] test not supported
39+
#endif
40+
3641
#define US_PER_S 1000000
3742

3843
using namespace utest::v1;
@@ -62,10 +67,6 @@ void ticker_event_handler_stub(const ticker_data_t *const ticker)
6267
/* Test that the ticker is operating at the frequency it specifies. */
6368
void ticker_frequency_test()
6469
{
65-
#if defined(__ARM_FM)
66-
TEST_SKIP_MESSAGE("FastModels not support time drifting test")
67-
#endif
68-
6970
char _key[11] = { };
7071
char _value[128] = { };
7172
int expected_key = 1;

TESTS/mbedmicro-rtos-mbed/basic/main.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@
2727
#error [NOT_SUPPORTED] test not supported
2828
#endif
2929

30+
//FastModels not support time drifting test
31+
#if defined(__ARM_FM)
32+
#error [NOT_SUPPORTED] test not supported
33+
#endif
34+
3035
using utest::v1::Case;
3136

3237
#if defined(__CORTEX_M23) || defined(__CORTEX_M33)
3338
#define TEST_STACK_SIZE 512
34-
#elif defined(__ARM_FM)
35-
#define TEST_STACK_SIZE 512
3639
#else
3740
#define TEST_STACK_SIZE 256
3841
#endif
@@ -67,10 +70,6 @@ void update_tick_thread(Mutex *mutex)
6770
*/
6871
void test(void)
6972
{
70-
#if defined(__ARM_FM)
71-
TEST_SKIP_MESSAGE("FastModels not support time drifting test")
72-
#endif
73-
7473
char _key[11] = { };
7574
char _value[128] = { };
7675
int expected_key = 1;

0 commit comments

Comments
 (0)