diff options
author | Andrei Vagin <avagin@gmail.com> | 2019-11-12 01:27:19 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-01-14 12:21:01 +0100 |
commit | 46e003433f8946283c3bfec1be854ca87b5ba402 (patch) | |
tree | fd4352b1c77994ca0074b1baf5d364a76107e50b /lib/mpi/mpiutil.c | |
parent | 11873de3ce4d2fe289d51932c03b3668cf519186 (diff) |
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 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions