File tree Expand file tree Collapse file tree 15 files changed +85
-33
lines changed Expand file tree Collapse file tree 15 files changed +85
-33
lines changed Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
+ #if defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
18
+ #error [NOT_SUPPORTED] Race test test cases require RTOS with multithread to run
19
+ #else
17
20
18
- #if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
19
- #error [NOT_SUPPORTED] Test not supported for single threaded and also bare metal enviroment. UsTicker need to be enabled for this test.
21
+ #if !DEVICE_USTICKER
22
+ #error [NOT_SUPPORTED] UsTicker need to be enabled for this test.
20
23
#else
21
24
22
25
#include " mbed.h"
@@ -133,4 +136,5 @@ int main()
133
136
Harness::run (specification);
134
137
}
135
138
136
- #endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
139
+ #endif // !DEVICE_USTICKER
140
+ #endif // defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_THREAD)
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
+ #if defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
18
+ #error [NOT_SUPPORTED] RTOS basic test cases require RTOS with multithread to run
19
+ #else
20
+
17
21
#include " mbed.h"
18
22
#include " greentea-client/test_env.h"
19
23
#include " utest/utest.h"
20
24
#include " unity/unity.h"
21
25
22
- #if defined(SKIP_TIME_DRIFT_TESTS) || defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
23
- #error [NOT_SUPPORTED] test not supported
26
+ #if defined(SKIP_TIME_DRIFT_TESTS) || !DEVICE_USTICKER
27
+ #error [NOT_SUPPORTED] UsTicker need to be enabled for this test.
24
28
#else
25
29
26
30
using utest::v1::Case;
@@ -116,4 +120,5 @@ int main()
116
120
utest::v1::Harness::run (specification);
117
121
}
118
122
119
- #endif // defined(SKIP_TIME_DRIFT_TESTS) || defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
123
+ #endif // defined(SKIP_TIME_DRIFT_TESTS) || !DEVICE_USTICKER
124
+ #endif // defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ #if defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
17
+ #error [NOT_SUPPORTED] Condition variable test cases require RTOS with multithread to run
18
+ #else
16
19
17
- #if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
18
- #error [NOT_SUPPORTED] test not supported
20
+ #if !DEVICE_USTICKER
21
+ #error [NOT_SUPPORTED] UsTicker need to be enabled for this test.
19
22
#else
20
23
21
24
#include " mbed.h"
@@ -186,4 +189,5 @@ int main()
186
189
return !Harness::run (specification);
187
190
}
188
191
189
- #endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
192
+ #endif // !DEVICE_USTICKER
193
+ #endif // defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
+ #if defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
18
+ #error [NOT_SUPPORTED] Event flags test cases require RTOS with multithread to run
19
+ #else
17
20
18
21
#include " mbed.h"
19
22
#include " greentea-client/test_env.h"
22
25
23
26
using utest::v1::Case;
24
27
25
- #if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
26
- #error [NOT_SUPPORTED] test not supported
28
+ #if !DEVICE_USTICKER
29
+ #error [NOT_SUPPORTED] UsTicker need to be enabled for this test.
27
30
#else
28
31
29
32
#if defined(__CORTEX_M23) || defined(__CORTEX_M33)
@@ -371,4 +374,5 @@ int main()
371
374
return !utest::v1::Harness::run (specification);
372
375
}
373
376
374
- #endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
377
+ #endif // !DEVICE_USTICKER
378
+ #endif // defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ #if defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
17
+ #error [NOT_SUPPORTED] mail test cases require RTOS with multithread to run
18
+ #else
16
19
17
- #if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
18
- #error [NOT_SUPPORTED] test not supported
20
+ #if !DEVICE_USTICKER
21
+ #error [NOT_SUPPORTED] UsTicker need to be enabled for this test.
19
22
#else
20
23
21
24
#include " mbed.h"
@@ -510,4 +513,5 @@ int main()
510
513
return !Harness::run (specification);
511
514
}
512
515
513
- #endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
516
+ #endif // !DEVICE_USTICKER
517
+ #endif // defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ #if defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
17
+ #error [NOT_SUPPORTED] Mutex test cases require RTOS with multithread to run
18
+ #else
16
19
17
- #if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
18
- #error [NOT_SUPPORTED] test not supported
20
+ #if !DEVICE_USTICKER
21
+ #error [NOT_SUPPORTED] UsTicker need to be enabled for this test.
19
22
#else
20
23
21
24
#include " mbed.h"
@@ -306,4 +309,5 @@ int main()
306
309
return !Harness::run (specification);
307
310
}
308
311
309
- #endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
312
+ #endif // !DEVICE_USTICKER
313
+ #endif // defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ #if defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
17
+ #error [NOT_SUPPORTED] Queue test cases require RTOS with multithread to run
18
+ #else
16
19
17
- #if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
18
- #error [NOT_SUPPORTED] test not supported
20
+ #if !DEVICE_USTICKER
21
+ #error [NOT_SUPPORTED] UsTicker need to be enabled for this test.
19
22
#else
20
23
21
24
#include " mbed.h"
@@ -346,4 +349,5 @@ int main()
346
349
return !Harness::run (specification);
347
350
}
348
351
349
- #endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
352
+ #endif // !DEVICE_USTICKER
353
+ #endif // defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
#if !defined(MBED_CONF_RTOS_PRESENT)
18
- #error [NOT_SUPPORTED] test not supported
18
+ #error [NOT_SUPPORTED] RTOS timer test cases require RTOS to run
19
19
#else
20
20
21
21
#include " mbed.h"
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ #if defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
17
+ #error [NOT_SUPPORTED] Semaphore test cases require RTOS with multithread to run
18
+ #else
16
19
17
- #if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
18
- #error [NOT_SUPPORTED] test not supported
20
+ #if !DEVICE_USTICKER
21
+ #error [NOT_SUPPORTED] UsTicker need to be enabled for this test.
19
22
#else
20
23
21
24
#include " mbed.h"
@@ -247,4 +250,5 @@ int main()
247
250
return !Harness::run (specification);
248
251
}
249
252
250
- #endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
253
+ #endif // !DEVICE_USTICKER
254
+ #endif // defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ #if defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
17
+ #error [NOT_SUPPORTED] Signals test cases require RTOS with multithread to run
18
+ #else
19
+
16
20
#include " mbed.h"
17
21
#include " greentea-client/test_env.h"
18
22
#include " utest/utest.h"
19
23
#include " unity/unity.h"
20
24
21
25
using utest::v1::Case;
22
26
23
- #if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
24
- #error [NOT_SUPPORTED] test not supported
27
+ #if !DEVICE_USTICKER
28
+ #error [NOT_SUPPORTED] UsTicker need to be enabled for this test.
25
29
#else
26
30
27
31
#define TEST_STACK_SIZE 512
@@ -393,4 +397,5 @@ int main()
393
397
return !utest::v1::Harness::run (specification);
394
398
}
395
399
396
- #endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
400
+ #endif // !DEVICE_USTICKER
401
+ #endif // defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ #if defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
17
+ #error [NOT_SUPPORTED] Threads test cases require RTOS with multithread to run
18
+ #else
16
19
17
- #if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
18
- #error [NOT_SUPPORTED] test not supported
20
+ #if !DEVICE_USTICKER
21
+ #error [NOT_SUPPORTED] UsTicker need to be enabled for this test.
19
22
#else
20
23
21
24
#include " mbed.h"
@@ -848,4 +851,5 @@ int main()
848
851
return !Harness::run (specification);
849
852
}
850
853
851
- #endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER || !defined(MBED_CONF_RTOS_PRESENT)
854
+ #endif // !DEVICE_USTICKER
855
+ #endif // defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
#if !defined(MBED_CONF_RTOS_PRESENT)
19
- #error [NOT_SUPPORTED] USB test cases requires RTOS to run.
19
+ #error [NOT_SUPPORTED] USB stack and test cases require RTOS to run.
20
20
#else
21
21
22
22
#include < stdio.h>
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
+ #if !defined(MBED_CONF_RTOS_PRESENT)
18
+ #error [NOT_SUPPORTED] USB stack and test cases require RTOS to run.
19
+ #else
20
+
17
21
#if !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
18
22
#error [NOT_SUPPORTED] USB Device not supported for this target
19
23
#else
@@ -385,3 +389,4 @@ int main()
385
389
}
386
390
387
391
#endif // !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
392
+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
#if !defined(MBED_CONF_RTOS_PRESENT)
19
- #error [NOT_SUPPORTED] USB test cases are not supported on Bare metal
19
+ #error [NOT_SUPPORTED] USB stack and test cases require RTOS to run.
20
20
#else
21
21
22
22
#include < stdio.h>
Original file line number Diff line number Diff line change 14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
+ #if !defined(MBED_CONF_RTOS_PRESENT)
18
+ #error [NOT_SUPPORTED] USB stack and test cases require RTOS to run.
19
+ #else
20
+
17
21
#if !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
18
22
#error [NOT_SUPPORTED] USB Device not supported for this target
19
23
#else
@@ -848,3 +852,4 @@ int main()
848
852
}
849
853
850
854
#endif // !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
855
+ #endif // !defined(MBED_CONF_RTOS_PRESENT)
You can’t perform that action at this time.
0 commit comments