]> git.ipfire.org Git - thirdparty/glibc.git/commit
tst: Add test for clock_settime
authorLukasz Majewski <lukma@denx.de>
Mon, 18 Jan 2021 15:59:23 +0000 (16:59 +0100)
committerLukasz Majewski <lukma@denx.de>
Mon, 8 Mar 2021 21:41:34 +0000 (22:41 +0100)
commit3f337843ec71cfdce90fa41df79ae4913241bc33
tree82be7ebd2254a4d2ad9f7c1dfb53a3586078b6b0
parenta1565550075255370f8e6c88dc9c4ad3fd7281ab
tst: Add test for clock_settime

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: DJ Delorie <dj@redhat.com>
time/Makefile
time/tst-clock_settime.c [new file with mode: 0644]