Skip to content

Commit 891c4ed

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
Skip time drifting test on FastModels targets
FastModels targets are simulator running on the x86 hosts. As the nature of non-RealTime x86 OS and FastModels, timing accuracy is not guaranteed So skipping the time drifting tests on FastModel targets
1 parent f15dbf2 commit 891c4ed

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

TESTS/mbed_drivers/ticker/main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ void increment_multi_counter(void)
104104
*/
105105
void test_case_1x_ticker()
106106
{
107+
#if defined(__ARM_FM)
108+
TEST_SKIP_MESSAGE("FastModels not support time drifting test")
109+
#endif
110+
107111
char _key[11] = { };
108112
char _value[128] = { };
109113
int expected_key = 1;
@@ -145,6 +149,10 @@ void test_case_1x_ticker()
145149
*/
146150
void test_case_2x_ticker()
147151
{
152+
#if defined(__ARM_FM)
153+
TEST_SKIP_MESSAGE("FastModels not support time drifting test")
154+
#endif
155+
148156
char _key[11] = { };
149157
char _value[128] = { };
150158
int expected_key = 1;

TESTS/mbed_drivers/timeout/timeout_tests.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ class TimeoutDriftTester {
389389
template<typename T>
390390
void test_drift(void)
391391
{
392+
#if defined(__ARM_FM)
393+
TEST_SKIP_MESSAGE("FastModels not support time drifting test")
394+
#endif
395+
392396
char _key[11] = { };
393397
char _value[128] = { };
394398
int expected_key = 1;

TESTS/mbed_hal/common_tickers_freq/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ void ticker_event_handler_stub(const ticker_data_t *const ticker)
6262
/* Test that the ticker is operating at the frequency it specifies. */
6363
void ticker_frequency_test()
6464
{
65+
#if defined(__ARM_FM)
66+
TEST_SKIP_MESSAGE("FastModels not support time drifting test")
67+
#endif
68+
6569
char _key[11] = { };
6670
char _value[128] = { };
6771
int expected_key = 1;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ void update_tick_thread(Mutex *mutex)
6565
*/
6666
void test(void)
6767
{
68+
#if defined(__ARM_FM)
69+
TEST_SKIP_MESSAGE("FastModels not support time drifting test")
70+
#endif
71+
6872
char _key[11] = { };
6973
char _value[128] = { };
7074
int expected_key = 1;

0 commit comments

Comments
 (0)