diff options
author | Lukasz Majewski <lukma@denx.de> | 2021-01-18 16:53:26 +0100 |
---|---|---|
committer | Lukasz Majewski <lukma@denx.de> | 2021-03-08 22:41:28 +0100 |
commit | a1565550075255370f8e6c88dc9c4ad3fd7281ab (patch) | |
tree | e9e1f2ce1d50cca15135faea0aa9a7f20fc7e33a /support/Makefile | |
parent | 496e36f2251f28961ce269548b5f3adb6546ef01 (diff) | |
download | glibc-a1565550075255370f8e6c88dc9c4ad3fd7281ab.zip glibc-a1565550075255370f8e6c88dc9c4ad3fd7281ab.tar.gz glibc-a1565550075255370f8e6c88dc9c4ad3fd7281ab.tar.bz2 |
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>
Diffstat (limited to 'support/Makefile')
-rw-r--r-- | support/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/support/Makefile b/support/Makefile index bb9889e..8d63fbd 100644 --- a/support/Makefile +++ b/support/Makefile @@ -90,6 +90,7 @@ libsupport-routines = \ xchdir \ xchroot \ xclock_gettime \ + xclock_settime \ xclose \ xchmod \ xconnect \ |