Skip to content

Commit 9e994cf

Browse files
committed
Incorporated review comments
1 parent 74d1939 commit 9e994cf

File tree

23 files changed

+93
-46
lines changed

23 files changed

+93
-46
lines changed

TESTS/integration/COMMON/download_test.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@
2020
/*
2121
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
2222
*/
23-
#if INTEGRATION_TESTS
2423
size_t download_test(NetworkInterface *interface, const unsigned char *data, size_t data_length, size_t buff_size, uint32_t thread_id = 0);
25-
#endif
2624

TESTS/integration/COMMON/file_test.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
/*
2121
* Based on mbed-stress-test by Marcus Chang @ Arm Mbed - http://github.com/ARMmbed/mbed-stress-test
2222
*/
23-
#if INTEGRATION_TESTS
2423
void file_test_write(const char *file, size_t offset, const unsigned char *data, size_t data_length, size_t block_size);
2524

2625
void file_test_read(const char *file, size_t offset, const unsigned char *data, size_t data_length, size_t block_size);
27-
#endif

TESTS/integration/fs-single/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ int main()
162162

163163
return !Harness::run(specification);
164164
}
165-
#endif
165+
#endif // !INTEGRATION_TESTS

TESTS/integration/fs-threaded/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,4 @@ int main()
181181

182182
return !Harness::run(specification);
183183
}
184-
#endif
184+
#endif // !INTEGRATION_TESTS

TESTS/integration/net-single/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ int main()
139139

140140
return !Harness::run(specification);
141141
}
142-
#endif
142+
#endif // !INTEGRATION_TESTS

TESTS/integration/net-threaded/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,4 @@ int main()
173173

174174
return !Harness::run(specification);
175175
}
176-
#endif
176+
#endif // !INTEGRATION_TESTS

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,4 @@ int main()
244244

245245
return !Harness::run(specification);
246246
}
247-
#endif
247+
#endif // !INTEGRATION_TESTS

TESTS/mbed_drivers/race_test/main.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
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
1720

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.
2023
#else
2124

2225
#include "mbed.h"
@@ -133,4 +136,5 @@ int main()
133136
Harness::run(specification);
134137
}
135138

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)

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
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+
1721
#include "mbed.h"
1822
#include "greentea-client/test_env.h"
1923
#include "utest/utest.h"
2024
#include "unity/unity.h"
2125

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.
2428
#else
2529

2630
using utest::v1::Case;
@@ -116,4 +120,5 @@ int main()
116120
utest::v1::Harness::run(specification);
117121
}
118122

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)

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
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
1619

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.
1922
#else
2023

2124
#include "mbed.h"
@@ -186,4 +189,5 @@ int main()
186189
return !Harness::run(specification);
187190
}
188191

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)

0 commit comments

Comments
 (0)