aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/timens/timer.c
AgeCommit message (Collapse)AuthorFilesLines
2020-05-22selftests/timens: handle a case when alarm clocks are not supportedAndrei Vagin1-0/+5
This can happen if a testing node doesn't have RTC (real time clock) hardware or it doesn't support alarms. Fixes: 61c57676035d ("selftests/timens: Add Time Namespace test for supported clocks") Acked-by: Vincenzo Frascino <[email protected]> Reported-by: Vincenzo Frascino <[email protected]> Signed-off-by: Andrei Vagin <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
2020-03-13selftests/timens: Remove duplicated include <time.h>YueHaibing1-1/+0
Remove duplicated include. Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Dmitry Safonov <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
2020-01-14selftests/timens: Add timer offsets testAndrei Vagin1-0/+122
Check that timer_create() takes into account clock offsets. Output on success: 1..3 ok 1 clockid=7 ok 2 clockid=1 ok 3 clockid=9 # Pass 3 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 Output with lack of permissions: 1..3 not ok 1 # SKIP need to run as root Output without support of time namespaces: 1..3 not ok 1 # SKIP Time namespaces are not supported Co-developed-by: Dmitry Safonov <[email protected]> Signed-off-by: Andrei Vagin <[email protected]> Signed-off-by: Dmitry Safonov <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]