tst: Add test for settimeofday
authorLukasz Majewski <lukma@denx.de>
Sun, 7 Mar 2021 12:11:55 +0000 (13:11 +0100)
committerLukasz Majewski <lukma@denx.de>
Mon, 8 Mar 2021 21:41:41 +0000 (22:41 +0100)
commit6905404496f47afcb2f585e4e290fe9646ca4ae3
treea8277da3402ffff1f43474e19d661d4ac3a3ac52
parent6b6a151c7709d9a0da25a2d74ad73e0f78566491
tst: Add test for settimeofday

This code brings test to check if time on target machine is properly set.
To avoid any issues with altering the time:

- The time, which was set before the test was executed is restored.

- The time is altered only when cross-test-ssh.sh is executed with
  --allow-time-setting flag

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