aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2023-12-27 09:58:21 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2024-01-02 11:14:20 +0200
commit188d737dd2300797ee89c95bf5027d5a7825041b (patch)
tree9687a473720c2eaf8690eb4f088d75d00a6abf1e /example
parent7e16e7b4c492b0cbb4ce4acf3f4bacd583bda2f4 (diff)
test: timer: add timer free return value checks
Add missing timer free return value checks into various timer test applications. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'example')
-rw-r--r--example/timer/odp_timer_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c
index a397a6ac9..0be53c4cd 100644
--- a/example/timer/odp_timer_test.c
+++ b/example/timer/odp_timer_test.c
@@ -178,7 +178,10 @@ static void test_abs_timeouts(int thr, test_globals_t *gbls)
continue;
odp_event_free(ttp->ev);
- odp_timer_free(ttp->tim);
+
+ if (odp_timer_free(ttp->tim))
+ ODPH_ABORT("Timer free failed (%" PRIu64 ")\n", odp_timer_to_u64(ttp->tim));
+
ttp = NULL;
}