Skip to content

Commit

Permalink
test/crypto: fix return value of a skipped test
Browse files Browse the repository at this point in the history
[ upstream commit 085f128 ]

The blockcipher testcase return value TEST_SUCCESS was incorrect for
one conditional check, it should have been TEST_SKIPPED similar to the
other condition checks in this function when the testcase is skipped.

Fixes: 4868f65 ("test/crypto: add cases for raw datapath API")

Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Tested-by: Ruifeng Wang <ruifeng.wang@arm.com>
  • Loading branch information
ciarapow authored and steevenlee committed Jun 8, 2021
1 parent 975a983 commit 010e63f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/test/test_cryptodev_blockcipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ test_blockcipher_one_case(const struct blockcipher_test_case *t,
printf("Raw Data Path APIs do not support OOP, "
"Test Skipped.\n");
snprintf(test_msg, BLOCKCIPHER_TEST_MSG_LEN, "SKIPPED");
status = TEST_SUCCESS;
status = TEST_SKIPPED;
goto error_exit;
}
}
Expand Down

0 comments on commit 010e63f

Please sign in to comment.