b/test/performance/odp_scheduling.c
@@ -785,6 +785,7 @@ int main(int argc, char *argv[])
char cpumaskstr[ODP_CPUMASK_STR_SIZE];
odp_pool_param_t params;
int ret = 0;
+ int rc = 0;
odp_instance_t instance;
odph_odpthread_params_t thr_params;
@@ -953,15 +954,17 @@ int main(int argc, char *argv[])
for (j = 0; j < QUEUES_PER_PRIO; j++) {
queue = globals->queue[i][j];
- odp_queue_destroy(queue);
+ rc += odp_queue_destroy(queue);
}
}
- odp_shm_free(shm);
- odp_queue_destroy(plain_queue);
- odp_pool_destroy(pool);
- odp_term_local();
- odp_term_global(instance);
+ rc += odp_shm_free(shm);
+ rc += odp_queue_destroy(plain_queue);
+ rc += odp_pool_destroy(pool);
+ rc += odp_term_local();
+ rc += odp_term_global(instance);
+ if (rc != 0)
+ abort();
return ret;
}