tests: drivers: rtc: Fix typos
Compare tm_nsec instead of tm_yday and fix error message. Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
This commit is contained in:
parent
668003857a
commit
a761280318
1 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ ZTEST(rtc_api, test_set_get_time)
|
|||
|
||||
zassert_equal(datetime_get.tm_isdst, -1, "Invalid tm_isdst");
|
||||
|
||||
zassert_true((datetime_get.tm_nsec > -1) && (datetime_get.tm_yday < 1000000000),
|
||||
"Invalid tm_yday");
|
||||
zassert_true((datetime_get.tm_nsec > -1) && (datetime_get.tm_nsec < 1000000000),
|
||||
"Invalid tm_nsec");
|
||||
|
||||
timer_get = timeutil_timegm((struct tm *)(&datetime_get));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue