Searched refs:rtm (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/tests/drivers/rtc/rtc_api/src/ |
D | test_y2k.c | 31 static struct rtc_time rtm[2] = { in ZTEST() local 36 (struct tm *const)&rtm[0], in ZTEST() 37 (struct tm *const)&rtm[1], in ZTEST() 47 int ret = rtc_set_time(rtc, &rtm[Y99]); in ZTEST() 58 zassert_ok(rtc_get_time(rtc, &rtm[Y2K])); in ZTEST() 61 zassert_equal(rtm[Y2K].tm_year + 1900, 2000, "wrong year: %d", rtm[Y2K].tm_year + 1900); in ZTEST() 62 zassert_equal(rtm[Y2K].tm_mon, 0, "wrong month: %d", rtm[Y2K].tm_mon); in ZTEST() 63 zassert_equal(rtm[Y2K].tm_mday, 1, "wrong day-of-month: %d", rtm[Y2K].tm_mday); in ZTEST() 64 zassert_true(rtm[Y2K].tm_yday == 0 || rtm[Y2K].tm_yday == -1, "wrong day-of-year: %d", in ZTEST() 65 rtm[Y2K].tm_yday); in ZTEST() [all …]
|