Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unittest failing fdcan_test on Nucleo-G474RE #1013

Closed
rleh opened this issue May 4, 2023 · 0 comments · Fixed by #1017
Closed

Unittest failing fdcan_test on Nucleo-G474RE #1013

rleh opened this issue May 4, 2023 · 0 comments · Fixed by #1017

Comments

@rleh
Copy link
Member

rleh commented May 4, 2023

The test:

modm::can::Message receivedMessage;
for (uint_fast8_t i = 0; i <= 8; ++i) {
TEST_ASSERT_TRUE(Fdcan1::getMessage(receivedMessage));
TEST_ASSERT_EQUALS(receivedMessage.getIdentifier(), 0x4711u);
TEST_ASSERT_EQUALS(receivedMessage.getLength(), i);
for (uint_fast8_t dataIndex = 0; dataIndex < i; ++dataIndex) {
TEST_ASSERT_EQUALS(receivedMessage.data[dataIndex], i);
}
}
TEST_ASSERT_FALSE(Fdcan1::isMessageAvailable());
TEST_ASSERT_FALSE(Fdcan1::getMessage(message));

The output:
[...]
FAIL: fdcan_test:92 : 1801 == 18193␊
FAIL: fdcan_test:93 : 0 == 1␊
FAIL: fdcan_test:96 : 0 == 1␊
[...]
>>> fdcan_test␊
FAIL: fdcan_test:62 : true == false␊
FAIL: fdcan_test:92 : 1801 == 18193␊
FAIL: fdcan_test:93 : 0 == 1␊
FAIL: fdcan_test:96 : 0 == 1␊
FAIL: fdcan_test:93 : 1 == 2␊
FAIL: fdcan_test:96 : 1 == 2␊
FAIL: fdcan_test:96 : 52 == 2␊
FAIL: fdcan_test:93 : 2 == 3␊
FAIL: fdcan_test:96 : 2 == 3␊
FAIL: fdcan_test:96 : 2 == 3␊
FAIL: fdcan_test:96 : 86 == 3␊
FAIL: fdcan_test:93 : 3 == 4␊
FAIL: fdcan_test:96 : 3 == 4␊
FAIL: fdcan_test:96 : 3 == 4␊
FAIL: fdcan_test:96 : 3 == 4␊
FAIL: fdcan_test:96 : 239 == 4␊
FAIL: fdcan_test:93 : 4 == 5␊
FAIL: fdcan_test:96 : 4 == 5␊
FAIL: fdcan_test:96 : 4 == 5␊
FAIL: fdcan_test:96 : 4 == 5␊
FAIL: fdcan_test:96 : 4 == 5␊
FAIL: fdcan_test:96 : 4 == 5␊
FAIL: fdcan_test:93 : 5 == 6␊
FAIL: fdcan_test:96 : 5 == 6␊
FAIL: fdcan_test:96 : 5 == 6␊
FAIL: fdcan_test:96 : 5 == 6␊
FAIL: fdcan_test:96 : 5 == 6␊
FAIL: fdcan_test:96 : 5 == 6␊
FAIL: fdcan_test:96 : 5 == 6␊
FAIL: fdcan_test:93 : 6 == 7␊
FAIL: fdcan_test:96 : 6 == 7␊
FAIL: fdcan_test:96 : 6 == 7␊
FAIL: fdcan_test:96 : 6 == 7␊
FAIL: fdcan_test:96 : 6 == 7␊
FAIL: fdcan_test:96 : 6 == 7␊
FAIL: fdcan_test:96 : 6 == 7␊
FAIL: fdcan_test:96 : 6 == 7␊
FAIL: fdcan_test:93 : 7 == 8␊
FAIL: fdcan_test:96 : 7 == 8␊
FAIL: fdcan_test:96 : 7 == 8␊
FAIL: fdcan_test:96 : 7 == 8␊
FAIL: fdcan_test:96 : 7 == 8␊
FAIL: fdcan_test:96 : 7 == 8␊
FAIL: fdcan_test:96 : 7 == 8␊
FAIL: fdcan_test:96 : 7 == 8␊
FAIL: fdcan_test:96 : 7 == 8␊
FAIL: fdcan_test:99 : true == false␊
FAIL: fdcan_test:100 : true == false␊
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant