Skip to content

Commit

Permalink
Check new speed if expected to change
Browse files Browse the repository at this point in the history
  • Loading branch information
yarrick committed Dec 2, 2023
1 parent 946fb2e commit d67f917
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion atr_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ START_TEST(parse_sample)
}
atr_result(&atr, &new_proto, &new_speed);
ck_assert_uint_eq(new_proto, s->first_protocol);
if (new_speed != NO_UPDATE) {
if (s->speed) {
ck_assert_uint_eq(new_speed, s->speed);
} else {
ck_assert_uint_eq(new_speed, NO_UPDATE);
}
}
END_TEST
Expand Down

0 comments on commit d67f917

Please sign in to comment.