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 d102056f2e93940946f39d5da160c2c0684b3a2e (commit) from 6a45a52beaab49ab30a06a4cafe60bb869c1800d (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 d102056f2e93940946f39d5da160c2c0684b3a2e Author: Matias Elo matias.elo@nokia.com Date: Tue Apr 2 15:53:38 2019 +0300
validation: classification: check handles before calling destroy
Some of the array elements may not be set if the number of supported scheduling priorities is low.
Signed-off-by: Matias Elo matias.elo@nokia.com Reviewed-by: Stanislaw Kardach skardach@marvell.com Reviewed-by: Petri Savolainen petri.savolainen@nokia.com
diff --git a/test/validation/api/classification/odp_classification_tests.c b/test/validation/api/classification/odp_classification_tests.c index 4f7221403..3951d8bed 100644 --- a/test/validation/api/classification/odp_classification_tests.c +++ b/test/validation/api/classification/odp_classification_tests.c @@ -119,17 +119,25 @@ int classification_suite_term(void) retcode = -1; }
- for (i = 0; i < CLS_ENTRIES; i++) - odp_cos_destroy(cos_list[i]); + for (i = 0; i < CLS_ENTRIES; i++) { + if (cos_list[i] != ODP_COS_INVALID) + odp_cos_destroy(cos_list[i]); + }
- for (i = 0; i < CLS_ENTRIES; i++) - odp_cls_pmr_destroy(pmr_list[i]); + for (i = 0; i < CLS_ENTRIES; i++) { + if (pmr_list[i] != ODP_PMR_INVALID) + odp_cls_pmr_destroy(pmr_list[i]); + }
- for (i = 0; i < CLS_ENTRIES; i++) - odp_queue_destroy(queue_list[i]); + for (i = 0; i < CLS_ENTRIES; i++) { + if (queue_list[i] != ODP_QUEUE_INVALID) + odp_queue_destroy(queue_list[i]); + }
- for (i = 0; i < CLS_ENTRIES; i++) - odp_pool_destroy(pool_list[i]); + for (i = 0; i < CLS_ENTRIES; i++) { + if (pool_list[i] != ODP_POOL_INVALID) + odp_pool_destroy(pool_list[i]); + }
return retcode; }
-----------------------------------------------------------------------
Summary of changes: .../api/classification/odp_classification_tests.c | 24 ++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-)
hooks/post-receive