Skip to content

Commit 8468fbe

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
TEST: add RTOS macro to guard integration tests
1 parent 92cdcfb commit 8468fbe

File tree

7 files changed

+12
-2
lines changed

7 files changed

+12
-2
lines changed

TESTS/integration/COMMON/download_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
2222
*/
2323

24-
#if INTEGRATION_TESTS
24+
#if INTEGRATION_TESTS && MBED_CONF_RTOS_PRESENT
2525

2626
#include "mbed.h"
2727
#include "unity/unity.h"

TESTS/integration/COMMON/file_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/*
2121
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
2222
*/
23-
#if INTEGRATION_TESTS
23+
#if INTEGRATION_TESTS && MBED_CONF_RTOS_PRESENT
2424

2525
#include "mbed.h"
2626
#include "unity/unity.h"

TESTS/integration/fs-single/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
#if !INTEGRATION_TESTS
2525
#error [NOT_SUPPORTED] integration tests not enabled for this target
26+
#elif !MBED_CONF_RTOS_PRESENT
27+
#error [NOT_SUPPORTED] integration tests required RTOS
2628
#else
2729

2830
#include "mbed.h"

TESTS/integration/fs-threaded/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
#if !INTEGRATION_TESTS
2525
#error [NOT_SUPPORTED] integration tests not enabled for this target
26+
#elif !MBED_CONF_RTOS_PRESENT
27+
#error [NOT_SUPPORTED] integration tests required RTOS
2628
#else
2729

2830
#include "mbed.h"

TESTS/integration/net-single/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
#if !INTEGRATION_TESTS
2525
#error [NOT_SUPPORTED] integration tests not enabled for this target
26+
#elif !MBED_CONF_RTOS_PRESENT
27+
#error [NOT_SUPPORTED] integration tests required RTOS
2628
#else
2729

2830
#include "mbed.h"

TESTS/integration/net-threaded/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
#if !INTEGRATION_TESTS
2525
#error [NOT_SUPPORTED] integration tests not enabled for this target
26+
#elif !MBED_CONF_RTOS_PRESENT
27+
#error [NOT_SUPPORTED] integration tests required RTOS
2628
#else
2729

2830
#include "mbed.h"

TESTS/integration/stress-net-fs/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
#if !INTEGRATION_TESTS
2525
#error [NOT_SUPPORTED] integration tests not enabled for this target
26+
#elif !MBED_CONF_RTOS_PRESENT
27+
#error [NOT_SUPPORTED] integration tests required RTOS
2628
#else
2729

2830
#include "mbed.h"

0 commit comments

Comments
 (0)