]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests/timens: Check for right timens offsets after fork and exec
authorAndrei Vagin <avagin@gmail.com>
Tue, 12 Nov 2019 01:27:23 +0000 (01:27 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Jan 2020 11:21:02 +0000 (12:21 +0100)
commita750c7474a5333a76e7278d353c460d26012deb6
treef2469c4e0487f8132ddac6955bc9b182c7ea7c3d
parent1854b97e4fa6a476d5cdc3dc30c42e1528699f87
selftests/timens: Check for right timens offsets after fork and exec

Output on success:
 1..1
 ok 1 exec
 # Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0

Output on failure:
 1..1
 not ok 1 36016 16
 Bail out!

Output with lack of permissions:
 1..1
 not ok 1 # SKIP need to run as root

Output without support of time namespaces:
 1..1
 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-35-dima@arista.com
tools/testing/selftests/timens/.gitignore
tools/testing/selftests/timens/Makefile
tools/testing/selftests/timens/exec.c [new file with mode: 0644]