Properly process the "Availablein" keyword for evp_test

The "Availablein" keyword is supposed to indicate which providers are
required in evp_test in order for a particular test to pass. Unfortunately
this didn't work. If the provider was available then the test failed.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9492)
This commit is contained in:
Matt Caswell 2019-07-30 18:36:53 +01:00
parent e2e5abe47a
commit 8453096ebf

View file

@ -3055,8 +3055,7 @@ top:
t->skip = 1;
return 0;
}
}
if (strcmp(pp->key, "Result") == 0) {
} else if (strcmp(pp->key, "Result") == 0) {
if (t->expected_err != NULL) {
TEST_info("Line %d: multiple result lines", t->s.curr);
return 0;