aboutsummaryrefslogtreecommitdiff
path: root/test/validation/crypto/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/validation/crypto/crypto.c')
-rw-r--r--test/validation/crypto/crypto.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/validation/crypto/crypto.c b/test/validation/crypto/crypto.c
index b2f9d96..9229cab 100644
--- a/test/validation/crypto/crypto.c
+++ b/test/validation/crypto/crypto.c
@@ -94,7 +94,15 @@ int crypto_term(void)
int crypto_main(void)
{
+ int ret;
+
odp_cunit_register_global_init(crypto_init);
odp_cunit_register_global_term(crypto_term);
- return odp_cunit_run(crypto_suites);
+
+ ret = odp_cunit_register(crypto_suites);
+
+ if (ret == 0)
+ ret = odp_cunit_run();
+
+ return ret;
}