Skip to content

Commit

Permalink
tests: drivers: rtc: rtc_api
Browse files Browse the repository at this point in the history
Correct time check for get/set
Previous check would always pass as it checked get/get.

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
  • Loading branch information
RichardSWheatley authored and MaureenHelm committed Apr 8, 2024
1 parent 6d7b624 commit 9f0cd47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/drivers/rtc/rtc_api/src/test_alarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ ZTEST(rtc_api, test_alarm)
zassert_equal(alarm_time_mask_get, alarm_time_mask_set,
"Incorrect alarm time mask");

zassert_equal(alarm_time_get.tm_min, alarm_time_get.tm_min,
zassert_equal(alarm_time_get.tm_min, alarm_time_set.tm_min,
"Incorrect alarm time minute field");

zassert_equal(alarm_time_get.tm_hour, alarm_time_get.tm_hour,
zassert_equal(alarm_time_get.tm_hour, alarm_time_set.tm_hour,
"Incorrect alarm time hour field");
}

Expand Down

0 comments on commit 9f0cd47

Please sign in to comment.