test/crypto: return not supported instead of skipped
authorAyuj Verma <ayverma@marvell.com>
Thu, 9 May 2019 11:23:21 +0000 (16:53 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 9 May 2019 14:21:57 +0000 (16:21 +0200)
commit7e94c8bc7cc073922b5d03e9d3c79ee67f7bdd15
tree893311258c5f1e36362822f4468c2cc648e3ec46
parentb4c32d036b1724ae7ad7b5656753eb411c9a0dc6
test/crypto: return not supported instead of skipped

Currently some tests return TEST_SKIPPED/-1 when tests or params
are not supported for particular PMD because of which tests adds to
FAILED test counter in place of Skipped/Unsupported counter.

Since unsupported test is not a failure case,
replace return value TEST_SKIPPED/-1 with -ENOTSUP

- Return -ENOTSUP for unsupported tests
- add NULL check for rte_cryptodev_asym_capability_get()
- Typo correction

Signed-off-by: Ayuj Verma <ayverma@marvell.com>
Signed-off-by: Shally Verma <shallyv@marvell.com>
app/test/test_cryptodev_asym.c