Skip to content

Commit

Permalink
Revert "Modify test/afalgtest to fail if the afalg engine couldn't be…
Browse files Browse the repository at this point in the history
… loaded"

It turns out that even if you successfully build the engine, it might
not load properly, so we cannot make the test program fail for it.

See the message in commit 25b9d11

This reverts commit 227a1e3.

Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#5276)
  • Loading branch information
levitte committed Feb 7, 2018
1 parent 048ebcc commit c517ac4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/afalgtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ int global_init(void)
int setup_tests(void)
{
#ifndef OPENSSL_NO_ENGINE
if (!TEST_ptr(e = ENGINE_by_id("afalg"))) {
if ((e = ENGINE_by_id("afalg")) == NULL) {
/* Probably a platform env issue, not a test failure. */
TEST_info("Can't load AFALG engine, you might want to check $OPENSSL_ENGINES");
return 0;
}
TEST_info("Can't load AFALG engine");
} else {
# ifndef OPENSSL_NO_AFALGENG
ADD_ALL_TESTS(test_afalg_aes_cbc, 3);
ADD_ALL_TESTS(test_afalg_aes_cbc, 3);
# endif
}
#endif

return 1;
Expand Down

0 comments on commit c517ac4

Please sign in to comment.