tst: Provide test for difftime
authorLukasz Majewski <lukma@denx.de>
Mon, 25 Jan 2021 11:51:41 +0000 (12:51 +0100)
committerLukasz Majewski <lukma@denx.de>
Tue, 16 Feb 2021 19:37:27 +0000 (20:37 +0100)
commit13c0b30b24b1f7c6853cb8a3317568cb960efe99
treef16404ce9731437449545c106cbf104ea1dfdaa9
parent0ca1a95d3b6249b3ac4101e6d781c7e4380c47e0
tst: Provide test for difftime

This change adds new test to assess difftime's functionality by
adding some arbitrary offsets to current time_t value (read via
time).

If 64 bit time_t is supported, the same procedure is applied around
the threshold of Y2038 time overflow.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
time/Makefile
time/tst-difftime.c [new file with mode: 0644]