summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/common.c3
-rw-r--r--tests/test_send.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/common.c b/tests/common.c
index 4ad8eff1..247d8f3d 100644
--- a/tests/common.c
+++ b/tests/common.c
@@ -83,8 +83,7 @@ void can_frame_sent(const uint16_t arbitration_id, const uint8_t* payload,
void setup() {
SHIMS = isotp_init_shims(debug, mock_send_can, mock_set_timer);
- // TODO
- /* HANDLE = isotp_receive(&SHIMS, 0x2a, message_received); */
+ HANDLE = isotp_receive(&SHIMS, 0x2a, message_received);
last_message_sent_payload = malloc(MAX_ISO_TP_MESSAGE_SIZE);
last_message_received_payload = malloc(MAX_ISO_TP_MESSAGE_SIZE);
memset(last_can_payload_sent, 0, sizeof(last_can_payload_sent));
diff --git a/tests/test_send.c b/tests/test_send.c
index 599552ae..0320576c 100644
--- a/tests/test_send.c
+++ b/tests/test_send.c
@@ -1,4 +1,4 @@
-#include <isotp/isotp.h>
+#include <isotp/receive.h>
#include <check.h>
#include <stdint.h>
#include <stdio.h>
@@ -30,7 +30,7 @@ extern void setup();
START_TEST (test_send_empty_payload)
{
uint16_t arbitration_id = 0x2a;
- IsoTpHandle foo = isotp_send(&SHIMS, arbitration_id, NULL, 0, message_sent);
+ IsoTpHandle handle = isotp_send(&SHIMS, arbitration_id, NULL, 0, message_sent);
fail_unless(handle.success);
fail_unless(handle.completed);
ck_assert_int_eq(last_message_sent_arb_id, arbitration_id);