tst: Add test for clock_adjtime
authorLukasz Majewski <lukma@denx.de>
Wed, 20 Jan 2021 11:10:42 +0000 (12:10 +0100)
committerLukasz Majewski <lukma@denx.de>
Mon, 8 Mar 2021 21:41:41 +0000 (22:41 +0100)
commitb4effffde8e61be97a9a11dec1c628034207a643
tree84d29d9a9d74e2526361f0ba1eb233715474bf5c
parent3f337843ec71cfdce90fa41df79ae4913241bc33
tst: Add test for clock_adjtime

This code privides test to check if time on target machine is properly
adjusted.
The time is altered only when cross-test-ssh.sh is executed with
--allow-time-setting flag.
As the delta added to CLOCK_REALTIME is only 1 sec the original time is
not restored and further tests are executed with this bias.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/tst-clock_adjtime.c [new file with mode: 0644]