summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/timens/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/timens/timer.c')
-rw-r--r--tools/testing/selftests/timens/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timens/timer.c b/tools/testing/selftests/timens/timer.c
index 5e7f0051bd..5b939f59df 100644
--- a/tools/testing/selftests/timens/timer.c
+++ b/tools/testing/selftests/timens/timer.c
@@ -56,7 +56,7 @@ int run_test(int clockid, struct timespec now)
return pr_perror("timerfd_gettime");
elapsed = new_value.it_value.tv_sec;
- if (abs(elapsed - 3600) > 60) {
+ if (llabs(elapsed - 3600) > 60) {
ksft_test_result_fail("clockid: %d elapsed: %lld\n",
clockid, elapsed);
return 1;