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/.gitignore | |
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/.gitignore')
-rw-r--r-- | tools/testing/selftests/timens/.gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/timens/.gitignore b/tools/testing/selftests/timens/.gitignore index b609f6ee9fb9..9b6c8ddac2c8 100644 --- a/tools/testing/selftests/timens/.gitignore +++ b/tools/testing/selftests/timens/.gitignore @@ -1,2 +1,3 @@ +clock_nanosleep timens timerfd |