Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJan Belle2018-06-18 03:11:08 -0400
committerJan Belle2018-06-18 03:11:08 -0400
commit3a0767800bb81a9f3f1f84024cfc3fcd5769df3f (patch)
tree7fa06ea4a337ecf4b621f39b103649a4144470c9 /tests
parentfce1a44a2f8008dbb3729e09a93ab4ac60655ce8 (diff)
downloadorg.eclipse.etrice-3a0767800bb81a9f3f1f84024cfc3fcd5769df3f.tar.gz
org.eclipse.etrice-3a0767800bb81a9f3f1f84024cfc3fcd5769df3f.tar.xz
org.eclipse.etrice-3a0767800bb81a9f3f1f84024cfc3fcd5769df3f.zip
[runtime.c] Refactor etStaticDeque api
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.etrice.runtime.c.tests/src/runtime/container/TestEtStaticDeque.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/org.eclipse.etrice.runtime.c.tests/src/runtime/container/TestEtStaticDeque.c b/tests/org.eclipse.etrice.runtime.c.tests/src/runtime/container/TestEtStaticDeque.c
index 67d4a5a8f..e795cf5aa 100644
--- a/tests/org.eclipse.etrice.runtime.c.tests/src/runtime/container/TestEtStaticDeque.c
+++ b/tests/org.eclipse.etrice.runtime.c.tests/src/runtime/container/TestEtStaticDeque.c
@@ -34,7 +34,7 @@ void TestEtStaticDeque_testConstruct(etInt16 caseId) {
// Test constructor StaticDeque(void)
etStaticDeque deque;
int memory[10];
- etStaticDeque_construct(&deque, memory, 10, sizeof(int));
+ etStaticDeque_construct(&deque, memory, sizeof(memory), sizeof(int));
EXPECT_EQUAL_INT32(caseId, failMsg, 0, deque.size);
EXPECT_TRUE(caseId, failMsg, deque.size == 0);
}
@@ -45,7 +45,7 @@ void TestEtStaticDeque_testPushPop(etInt16 caseId) {
// Test push_back and push_front with 6 objects of type DataClass
etStaticDeque deque;
DataClass memory[6];
- etStaticDeque_construct(&deque, memory, 6, sizeof(DataClass));
+ etStaticDeque_construct(&deque, memory, sizeof(memory), sizeof(DataClass));
DataClass d1 = { 1, 1.5, "Data 1" };
DataClass d2 = { 2, 2.5, "Data 2" };
DataClass d3 = { 3, 3.5, "Data 3" };

Back to the top