Skip to content

Commit f16342f

Browse files
author
Bogdan Marinescu
committed
Removed allocate_failure_test1 from equeue tests
This tests doesn't run on some MCUs with low RAM. According to @geky: "We may want to omit this test (allocate_failure_test1) for now. It has had other problems such as overflowing stacks, and allocation failure is also tested by allocate_failure_test2."
1 parent 0abd141 commit f16342f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

TESTS/events/queue/main.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,7 @@ void call_every_test() {
102102
queue.dispatch(N*100);
103103
}
104104

105-
struct big { char data[1024]; } big;
106-
107-
void allocate_failure_test1() {
108-
EventQueue queue(32);
109-
int id = queue.call((void (*)(struct big))0, big);
110-
TEST_ASSERT(!id);
111-
}
112-
113-
void allocate_failure_test2() {
105+
void allocate_failure_test() {
114106
EventQueue queue;
115107
int id;
116108

@@ -250,8 +242,7 @@ const Case cases[] = {
250242
Case("Testing call_in", call_in_test<20>),
251243
Case("Testing call_every", call_every_test<20>),
252244

253-
Case("Testing allocate failure 1", allocate_failure_test1),
254-
Case("Testing allocate failure 2", allocate_failure_test2),
245+
Case("Testing allocate failure", allocate_failure_test),
255246

256247
Case("Testing event cancel 1", cancel_test1<20>),
257248
Case("Testing the event class", event_class_test),

0 commit comments

Comments
 (0)