diff options
author | Andrei Vagin <avagin@gmail.com> | 2019-11-12 04:27:19 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-01-14 14:21:01 +0300 |
commit | 46e003433f8946283c3bfec1be854ca87b5ba402 (patch) | |
tree | fd4352b1c77994ca0074b1baf5d364a76107e50b /tools/testing/selftests/timens/Makefile | |
parent | 11873de3ce4d2fe289d51932c03b3668cf519186 (diff) | |
download | linux-46e003433f8946283c3bfec1be854ca87b5ba402.tar.xz |
selftests/timens: Add a test for clock_nanosleep()
Check that clock_nanosleep() takes into account clock offsets.
Output on success:
1..4
ok 1 clockid: 1 abs:0
ok 2 clockid: 1 abs:1
ok 3 clockid: 9 abs:0
ok 4 clockid: 9 abs:1
Output with lack of permissions:
1..4
not ok 1 # SKIP need to run as root
Output without support of time namespaces:
1..4
not ok 1 # SKIP Time namespaces are not supported
Co-developed-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20191112012724.250792-31-dima@arista.com
Diffstat (limited to 'tools/testing/selftests/timens/Makefile')
-rw-r--r-- | tools/testing/selftests/timens/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/timens/Makefile b/tools/testing/selftests/timens/Makefile index 293aed6be95e..40f630d46ca8 100644 --- a/tools/testing/selftests/timens/Makefile +++ b/tools/testing/selftests/timens/Makefile @@ -1,6 +1,6 @@ -TEST_GEN_PROGS := timens timerfd +TEST_GEN_PROGS := timens timerfd clock_nanosleep -CFLAGS := -Wall -Werror +CFLAGS := -Wall -Werror -pthread LDFLAGS := -lrt include ../lib.mk |