1
0
Fork 0
alistair23-linux/tools/testing/selftests/seccomp
Kees Cook ed492c2ad4 selftests/seccomp: Actually sleep for 1/10th second
Clang noticed that some none-zero sleep()s were actually using zero
anyway. This switches to nanosleep() to gain sub-second granularity.

seccomp_bpf.c:2625:9: warning: implicit conversion from 'double' to
      'unsigned int' changes value from 0.1 to 0 [-Wliteral-conversion]
                sleep(0.1);
                ~~~~~ ^~~

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Shuah Khan <shuah@kernel.org>
2019-02-13 08:52:42 -07:00
..
.gitignore selftests: seccomp: update .gitignore with newly added tests 2017-11-15 08:01:42 -07:00
Makefile selftests: seccomp: use LDLIBS instead of LDFLAGS 2019-01-16 11:41:44 -07:00
config selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
seccomp_benchmark.c selftests/seccomp: Add simple seccomp overhead benchmark 2017-08-14 13:46:41 -07:00
seccomp_bpf.c selftests/seccomp: Actually sleep for 1/10th second 2019-02-13 08:52:42 -07:00