From 5d28b6605532a9a4e24884abb779afcecce9110b Mon Sep 17 00:00:00 2001 From: Shijith Thotton Date: Fri, 7 May 2021 15:42:47 +0530 Subject: [PATCH] test/event: fix result of unsupported periodic timer Test case setup should return -ENOTSUP, if it is not supported. Fixes: 7d761b07fcf6 ("test/event: add unit tests for periodic timer") Cc: stable@dpdk.org Signed-off-by: Shijith Thotton Acked-by: Jerin Jacob --- app/test/test_event_timer_adapter.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/test/test_event_timer_adapter.c b/app/test/test_event_timer_adapter.c index c36ab32ac2..121c2d93e8 100644 --- a/app/test/test_event_timer_adapter.c +++ b/app/test/test_event_timer_adapter.c @@ -303,10 +303,8 @@ _timdev_setup(uint64_t max_tmo_ns, uint64_t bkt_tck_ns, uint64_t flags) "failed to get adapter capabilities"); if (flags & RTE_EVENT_TIMER_ADAPTER_F_PERIODIC && - !(caps & RTE_EVENT_TIMER_ADAPTER_CAP_PERIODIC)) { - printf("Adapter does not support periodic timers\n"); - return TEST_SKIPPED; - } + !(caps & RTE_EVENT_TIMER_ADAPTER_CAP_PERIODIC)) + return -ENOTSUP; if (!(caps & RTE_EVENT_TIMER_ADAPTER_CAP_INTERNAL_PORT)) { timdev = rte_event_timer_adapter_create_ext(&config, -- 2.20.1