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(a)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(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)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
--
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 4f309eceba9fbf1254eb39120d184ca3f6543168 (commit)
from abfea01c9d5afe4d318db623b24ee00231057316 (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 4f309eceba9fbf1254eb39120d184ca3f6543168
Author: Petri Savolainen <petri.savolainen(a)linaro.org>
Date: Wed Nov 7 10:44:00 2018 +0200
validation: crypto: capability call should not fail
Capability call should always succeed. It's possible that no
algorithms are supported, but also then the call should succeed.
Signed-off-by: Petri Savolainen <petri.savolainen(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c
index 1e06761c..361e6ac9 100644
--- a/test/validation/api/crypto/odp_crypto_test_inp.c
+++ b/test/validation/api/crypto/odp_crypto_test_inp.c
@@ -647,8 +647,11 @@ static int check_alg_support(odp_cipher_alg_t cipher, odp_auth_alg_t auth)
{
odp_crypto_capability_t capability;
- if (odp_crypto_capability(&capability))
+ memset(&capability, 0, sizeof(odp_crypto_capability_t));
+ if (odp_crypto_capability(&capability)) {
+ fprintf(stderr, "odp_crypto_capability() failed\n");
return ODP_TEST_INACTIVE;
+ }
if (suite_context.packet) {
if (suite_context.op_mode == ODP_CRYPTO_SYNC &&
@@ -1571,6 +1574,7 @@ static int crypto_init(odp_instance_t *inst)
odp_pool_t pool;
odp_queue_t out_queue;
odp_pool_capability_t pool_capa;
+ odp_crypto_capability_t crypto_capa;
if (0 != odp_init_global(inst, NULL, NULL)) {
fprintf(stderr, "error: odp_init_global() failed.\n");
@@ -1582,6 +1586,11 @@ static int crypto_init(odp_instance_t *inst)
return -1;
}
+ if (odp_crypto_capability(&crypto_capa)) {
+ fprintf(stderr, "error: odp_crypto_capability() failed.\n");
+ return -1;
+ }
+
if (odp_pool_capability(&pool_capa) < 0) {
fprintf(stderr, "error: odp_pool_capability() failed.\n");
return -1;
-----------------------------------------------------------------------
Summary of changes:
test/validation/api/crypto/odp_crypto_test_inp.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
hooks/post-receive
--