aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/timers/nanosleep.c
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2015-03-11 17:39:58 -0700
committerShuah Khan <shuahkh@osg.samsung.com>2015-03-12 13:22:12 -0600
commit2430ec652dd67243484c90fe34a4433622fc2a30 (patch)
tree5ed2cae69531e7e905d98bbc9d04eb044132a05e /tools/testing/selftests/timers/nanosleep.c
parentselftests/timers: Cleanup Makefile to make it easier to add future tests (diff)
downloadwireguard-linux-2430ec652dd67243484c90fe34a4433622fc2a30.tar.xz
wireguard-linux-2430ec652dd67243484c90fe34a4433622fc2a30.zip
selftests/timers: Quiet warning due to lack of return check on brk
The posix_timers.c test has a loop that tries to keep it in kernel space, repeatedly calling brk(). However, it doesn't check the return value, which causes warnings. This patch adds a err value which captures the return value and modifies the test so it will quit if a failure occurs. Cc: Shuah Khan <shuahkh@osg.samsung.com> Cc: Prarit Bhargava <prarit@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Richard Cochran <richardcochran@gmail.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Tested-by: Prarit Bhargava <prarit@redhat.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/timers/nanosleep.c')
0 files changed, 0 insertions, 0 deletions