summaryrefslogtreecommitdiffstats
path: root/tests/test_core.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-06 18:22:06 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-06 18:24:17 -0500
commitb2705b3ec209311506af2034e021285daf3c9649 (patch)
tree507eb4e6d0c004ef17842beb7f4ae5460e444ef3 /tests/test_core.c
parent00fa0aa3e59d49d72c961f893e524fc20563aa67 (diff)
Mark request handle and response completed even if an error ocurred.
Add extra logging and a few notes.
Diffstat (limited to 'tests/test_core.c')
-rw-r--r--tests/test_core.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_core.c b/tests/test_core.c
index cf8673ae..51dff33f 100644
--- a/tests/test_core.c
+++ b/tests/test_core.c
@@ -140,8 +140,11 @@ START_TEST (test_wrong_mode_response)
const uint8_t can_data[] = {0x4, 0x1 + 0x40, 0x0, 0x2, 0x45};
diagnostic_receive_can_frame(&SHIMS, &handle, arb_id + 0x8, can_data,
sizeof(can_data));
- fail_if(last_response_was_received);
- fail_if(handle.completed);
+ // TODO change this if we even re-request a message receipt on a mode or PID
+ // mismatch
+ fail_unless(last_response_was_received);
+ fail_unless(handle.completed);
+ fail_if(last_response_received.success);
}
END_TEST