Skip to content

Commit ca4c44a

Browse files
mprsecmonr
authored andcommitted
Skip higher level ticker tests for targets with stale ticker target specific drivers.
Since target specific ticker drivers are not ready also features which uses ticker in upper layers may not work correctly and tests for these features. We need to disable also failing higher level ticker related tests (by adding check if DEVICE_USTICKER symbol is available and raise #error [NOT_SUPPORTED] if not).
1 parent 91a928b commit ca4c44a

File tree

18 files changed

+71
-2
lines changed

18 files changed

+71
-2
lines changed

TESTS/events/queue/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#include "unity.h"
2121
#include "utest.h"
2222

23+
#if !DEVICE_USTICKER
24+
#error [NOT_SUPPORTED] test not supported
25+
#endif
26+
2327
using namespace utest::v1;
2428

2529
// TEST_EQUEUE_SIZE was reduced below 1024B to fit this test to devices with small RAM (RAM <= 16kB)

TESTS/events/timing/main.cpp

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

2525
using namespace utest::v1;
2626

27+
#if !DEVICE_USTICKER
28+
#error [NOT_SUPPORTED] test not supported
29+
#endif
2730

2831
// Test delay
2932
#ifndef TEST_EVENTS_TIMING_TIME

TESTS/mbed_drivers/race_test/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
#error [NOT_SUPPORTED] test not supported for single threaded enviroment
2727
#endif
2828

29+
#if !DEVICE_USTICKER
30+
#error [NOT_SUPPORTED] test not supported
31+
#endif
32+
2933
using namespace utest::v1;
3034

3135
#define TEST_STACK_SIZE 512

TESTS/mbed_drivers/ticker/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
#include "utest/utest.h"
1919
#include "unity/unity.h"
2020

21+
#if !DEVICE_USTICKER
22+
#error [NOT_SUPPORTED] test not supported
23+
#endif
2124

2225
using utest::v1::Case;
2326

TESTS/mbed_drivers/timer/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#include "rtos.h"
2323
#include "hal/us_ticker_api.h"
2424

25+
#if !DEVICE_USTICKER
26+
#error [NOT_SUPPORTED] test not supported
27+
#endif
28+
2529
using namespace utest::v1;
2630

2731
extern uint32_t SystemCoreClock;

TESTS/mbed_hal/sleep_manager_racecondition/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#error [NOT_SUPPORTED] test not supported
2323
#endif
2424

25+
#if !DEVICE_USTICKER
26+
#error [NOT_SUPPORTED] test not supported
27+
#endif
28+
2529
using namespace utest::v1;
2630

2731
#define TEST_STACK_SIZE 256

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
#error [NOT_SUPPORTED] test not supported
2424
#endif
2525

26+
#if !DEVICE_USTICKER
27+
#error [NOT_SUPPORTED] test not supported
28+
#endif
29+
2630
using utest::v1::Case;
2731

2832
#define TEST_STACK_SIZE 256

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
#error [NOT_SUPPORTED] test not supported
2424
#endif
2525

26+
#if !DEVICE_USTICKER
27+
#error [NOT_SUPPORTED] test not supported
28+
#endif
29+
2630
using namespace utest::v1;
2731

2832
#define TEST_STACK_SIZE 512

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ using utest::v1::Case;
2626
#error [NOT_SUPPORTED] test not supported
2727
#endif
2828

29+
#if !DEVICE_USTICKER
30+
#error [NOT_SUPPORTED] test not supported
31+
#endif
32+
2933
#define THREAD_STACK_SIZE 320 /* 512B stack on GCC_ARM compiler cause out of memory on some 16kB RAM boards e.g. NUCLEO_F070RB */
3034

3135
#define MAX_FLAG_POS 30

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
*/
1717

1818
#if defined(TARGET_CORTEX_A)
19-
#error [NOT_SUPPORTED] This function not supported for this target
19+
#error [NOT_SUPPORTED] This function not supported for this target
20+
#endif
21+
22+
#if !DEVICE_USTICKER
23+
#error [NOT_SUPPORTED] test not supported
2024
#endif
2125

2226
#include <stdio.h>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
#error [NOT_SUPPORTED] test not supported
2424
#endif
2525

26+
#if !DEVICE_USTICKER
27+
#error [NOT_SUPPORTED] test not supported
28+
#endif
29+
2630
using namespace utest::v1;
2731

2832
#define THREAD_STACK_SIZE 320 /* larger stack cause out of heap memory on some 16kB RAM boards in multi thread test*/

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
#error [NOT_SUPPORTED] test not supported
2424
#endif
2525

26+
#if !DEVICE_USTICKER
27+
#error [NOT_SUPPORTED] test not supported
28+
#endif
29+
2630
using utest::v1::Case;
2731

2832
extern uint32_t mbed_heap_size;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
#error [NOT_SUPPORTED] test not supported
2424
#endif
2525

26+
#if !DEVICE_USTICKER
27+
#error [NOT_SUPPORTED] test not supported
28+
#endif
29+
2630
using namespace utest::v1;
2731

2832
#define TEST_STACK_SIZE 512

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
#error [NOT_SUPPORTED] test not supported
2424
#endif
2525

26+
#if !DEVICE_USTICKER
27+
#error [NOT_SUPPORTED] test not supported
28+
#endif
29+
2630
using namespace utest::v1;
2731

2832
#define THREAD_STACK_SIZE 512

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ using namespace utest::v1;
3030
#error invalid RESTART_DELAY_MS value
3131
#endif
3232

33+
#if !DEVICE_USTICKER
34+
#error [NOT_SUPPORTED] test not supported
35+
#endif
36+
3337
class Stopwatch: public Timer {
3438
private:
3539
Semaphore _sem;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ using namespace utest::v1;
2525
#error [NOT_SUPPORTED] test not supported
2626
#endif
2727

28+
#if !DEVICE_USTICKER
29+
#error [NOT_SUPPORTED] test not supported
30+
#endif
31+
2832
#define THREAD_DELAY 30
2933
#define SEMAPHORE_SLOTS 2
3034
#define SEM_CHANGES 100

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@
2020

2121
using utest::v1::Case;
2222

23-
2423
#if defined(MBED_RTOS_SINGLE_THREAD)
2524
#error [NOT_SUPPORTED] test not supported
2625
#endif
2726

27+
#if !DEVICE_USTICKER
28+
#error [NOT_SUPPORTED] test not supported
29+
#endif
30+
2831
#define TEST_STACK_SIZE 512
2932
#define MAX_FLAG_POS 30
3033

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#error [NOT_SUPPORTED] test not supported
2626
#endif
2727

28+
#if !DEVICE_USTICKER
29+
#error [NOT_SUPPORTED] test not supported
30+
#endif
31+
2832
#define THREAD_STACK_SIZE 512
2933
#if defined(__CORTEX_A9)
3034
#define PARALLEL_THREAD_STACK_SIZE 512

0 commit comments

Comments
 (0)