This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 2f1c802e45b2e860e641d84c15368cca6cc3454d (commit) from 5d6ad599eb9f6b05d3890f2b0aae3746b8a2b73e (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 2f1c802e45b2e860e641d84c15368cca6cc3454d Author: Petri Savolainen petri.savolainen@linaro.org Date: Mon Nov 12 14:20:15 2018 +0200
test: queue_perf: fix lockfree support check
Exit application when -l/-w option is used, but lockfree/waitfree queues are not supported.
Signed-off-by: Petri Savolainen petri.savolainen@linaro.org Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/performance/odp_queue_perf.c b/test/performance/odp_queue_perf.c index 09c8592b..80d0f154 100644 --- a/test/performance/odp_queue_perf.c +++ b/test/performance/odp_queue_perf.c @@ -205,7 +205,7 @@ static int create_queues(test_global_t *global) } else if (nonblock == ODP_NONBLOCKING_LF) { if (queue_capa.plain.lockfree.max_num == 0) { printf("Lockfree queues not supported\n"); - return 0; + return -1; }
if (num_queue > queue_capa.plain.lockfree.max_num) { @@ -223,7 +223,7 @@ static int create_queues(test_global_t *global) } else if (nonblock == ODP_NONBLOCKING_WF) { if (queue_capa.plain.waitfree.max_num == 0) { printf("Waitfree queues not supported\n"); - return 0; + return -1; }
if (num_queue > queue_capa.plain.waitfree.max_num) { @@ -327,8 +327,7 @@ static int destroy_queues(test_global_t *global)
for (i = 0; i < num_queue; i++) { if (queue[i] == ODP_QUEUE_INVALID) { - printf("Error: Invalid queue handle %u.\n", i); - ret = -1; + printf("Error: Invalid queue handle (i: %u).\n", i); break; }
@@ -346,7 +345,7 @@ static int destroy_queues(test_global_t *global) } }
- if (odp_pool_destroy(pool)) { + if (pool != ODP_POOL_INVALID && odp_pool_destroy(pool)) { printf("Error: Pool destroy failed.\n"); ret = -1; }
-----------------------------------------------------------------------
Summary of changes: test/performance/odp_queue_perf.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
hooks/post-receive