Skip to content

Commit 7390725

Browse files
committed
Increased stack to 1024 from 768 and corrected assert.
1) mbed-os-tests-mbedmicro-rtos-mbed-basic tests use to fail when run in loop after 20-25, This was because the stack used by test application was in range of 744-840 bytes. So bumped the stack size to 1024 bytes. 2) Corrected the assert and taken out the assert which was not required.
1 parent 12fe341 commit 7390725

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

TESTS/mbed_drivers/ticker/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ utest::v1::status_t greentea_test_setup(const size_t number_of_cases) {
172172
return greentea_test_setup_handler(number_of_cases);
173173
}
174174

175-
Specification specification(greentea_test_setup, cases,
176-
greentea_test_teardown_handler);
175+
Specification specification(greentea_test_setup, cases, greentea_test_teardown_handler);
177176

178177
int main() {
179178
Harness::run(specification);

TESTS/mbed_drivers/timeout/main.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include "greentea-client/test_env.h"
3434
#include "utest/utest.h"
3535
#include "unity/unity.h"
36-
#include "strings.h"
3736

3837
using namespace utest::v1;
3938

@@ -80,8 +79,7 @@ utest::v1::status_t greentea_test_setup(const size_t number_of_cases) {
8079
return greentea_test_setup_handler(number_of_cases);
8180
}
8281

83-
Specification specification(greentea_test_setup, cases,
84-
greentea_test_teardown_handler);
82+
Specification specification(greentea_test_setup, cases, greentea_test_teardown_handler);
8583

8684
int main() {
8785
Harness::run(specification);

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#error [NOT_SUPPORTED] test not supported
3939
#endif
4040

41-
#define TEST_STACK_SIZE 768
41+
#define TEST_STACK_SIZE 1024
4242
#define ONE_MILLI_SEC 1000
4343

4444
volatile uint32_t callback_trigger_count = 0;
@@ -73,7 +73,6 @@ void gt_comm_wait_thread() {
7373
if (strcmp("pass", _key) == 0) {
7474
test_result = true;
7575
}
76-
TEST_ASSERT_EQUAL_STRING_MESSAGE("pass", _key, "expected host to send pass...");
7776
}
7877

7978
int main() {

0 commit comments

Comments
 (0)