]> git.ipfire.org Git - thirdparty/glibc.git/commit
support: Provide xclock_settime test helper function
authorLukasz Majewski <lukma@denx.de>
Mon, 18 Jan 2021 15:53:26 +0000 (16:53 +0100)
committerLukasz Majewski <lukma@denx.de>
Mon, 8 Mar 2021 21:41:28 +0000 (22:41 +0100)
commita1565550075255370f8e6c88dc9c4ad3fd7281ab
treee9e1f2ce1d50cca15135faea0aa9a7f20fc7e33a
parent496e36f2251f28961ce269548b5f3adb6546ef01
support: Provide xclock_settime test helper function

The xclock_settime is a wrapper function on the clock_settime syscall
to be used in the test code.

It checks if the GLIBC_TEST_ALLOW_TIME_SETTING env variable is defined
in the environment in which test is executed. If it is not - the test
ends as unsupported. Otherwise, the clock-settime is executed and return
value is assessed.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
support/Makefile
support/xclock_settime.c [new file with mode: 0644]
support/xtime.h