aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/timers/Makefile
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2015-03-11 17:39:59 -0700
committerShuah Khan <shuahkh@osg.samsung.com>2015-03-12 13:22:13 -0600
commit689f32fbb81356efac9fac99c740c4c232634c41 (patch)
treeed6c1e3092905f578b7f47b013e11d65d62624e8 /tools/testing/selftests/timers/Makefile
parentselftests/timers: Quiet warning due to lack of return check on brk (diff)
downloadwireguard-linux-689f32fbb81356efac9fac99c740c4c232634c41.tar.xz
wireguard-linux-689f32fbb81356efac9fac99c740c4c232634c41.zip
selftests/timers: Add nanosleep test from timetest suite
Add my basic nanosleep test from my timetest suite. This test validates that nanosleep doesn't return early against a number of clockids. 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/Makefile')
-rw-r--r--tools/testing/selftests/timers/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/timers/Makefile b/tools/testing/selftests/timers/Makefile
index e65c543ad03c..940942369281 100644
--- a/tools/testing/selftests/timers/Makefile
+++ b/tools/testing/selftests/timers/Makefile
@@ -2,12 +2,13 @@ CC = $(CROSS_COMPILE)gcc
BUILD_FLAGS = -DKTEST
CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
LDFLAGS += -lrt -lpthread
-bins = posix_timers
+bins = posix_timers nanosleep
all: ${bins}
run_tests: all
./posix_timers
+ ./nanosleep
clean:
rm -f ${bins}