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 e9545afb7d521b7be5b52f7ff599824fdde8113e (commit) from e9d434fd193e501ef9ca69f530ce4e5f9448594d (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 e9545afb7d521b7be5b52f7ff599824fdde8113e Author: Maxim Uvarov maxim.uvarov@linaro.org Date: Thu Jun 30 10:39:53 2016 +0300
Revert "validation: queue: use malloc to avoid limits on max_queues"
This reverts commit e9d434fd193e501ef9ca69f530ce4e5f9448594d. Some disagreement in ml about this path. Revert on Perti's request.
Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c index 2c8658e..96941f4 100644 --- a/test/validation/queue/queue.c +++ b/test/validation/queue/queue.c @@ -55,7 +55,7 @@ void queue_test_capa(void) odp_queue_capability_t capa; odp_queue_param_t qparams; char name[ODP_QUEUE_NAME_LEN]; - odp_queue_t *queue; + odp_queue_t queue[MAX_QUEUES]; uint32_t num_queues, i;
memset(&capa, 0, sizeof(odp_queue_capability_t)); @@ -71,15 +71,10 @@ void queue_test_capa(void)
name[ODP_QUEUE_NAME_LEN - 1] = 0;
- num_queues = capa.max_queues; - queue = malloc(num_queues * sizeof(odp_queue_t)); - if (queue == NULL) { - printf("Unable to alloc %d queues, trying with %d\n", - num_queues, MAX_QUEUES); + if (capa.max_queues > MAX_QUEUES) num_queues = MAX_QUEUES; - queue = malloc(num_queues * sizeof(odp_queue_t)); - CU_ASSERT_FATAL(queue != NULL); - } + else + num_queues = capa.max_queues;
odp_queue_param_init(&qparams);
@@ -98,8 +93,6 @@ void queue_test_capa(void)
for (i = 0; i < num_queues; i++) CU_ASSERT(odp_queue_destroy(queue[i]) == 0); - - free(queue); }
void queue_test_mode(void)
-----------------------------------------------------------------------
Summary of changes: test/validation/queue/queue.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-)
hooks/post-receive