[dpdk-dev,v4,03/17] test/eventdev: rework timeout ticks test
Checks
Commit Message
This commit reworks the failing of the timeout_ticks
test to pass when -ENOTSUP is returned, as this is a valid
return if the PMD does not support waiting on dequeue().
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
---
app/test/test_eventdev.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@@ -519,7 +519,9 @@ test_eventdev_timeout_ticks(void)
uint64_t timeout_ticks;
ret = rte_event_dequeue_timeout_ticks(TEST_DEV_ID, 100, &timeout_ticks);
- TEST_ASSERT_SUCCESS(ret, "Fail to get timeout_ticks");
+ /* -ENOTSUP is a valid return if timeout is not supported by device */
+ if (ret != -ENOTSUP)
+ TEST_ASSERT_SUCCESS(ret, "Fail to get timeout_ticks");
return TEST_SUCCESS;
}