diff --git a/test/oqs_test_endecode.c b/test/oqs_test_endecode.c index 0e498e37..86a8896c 100644 --- a/test/oqs_test_endecode.c +++ b/test/oqs_test_endecode.c @@ -218,16 +218,24 @@ static int test_oqs_encdec(const char *alg_name) { static int test_algs(const OSSL_ALGORITHM *algs) { int errcnt = 0; for (; algs->algorithm_names != NULL; algs++) { - if (test_oqs_encdec(algs->algorithm_names)) { + switch (test_oqs_encdec(algs->algorithm_names)) { + case 1: fprintf(stderr, cGREEN " Encoding/Decoding test succeeded: %s" cNORM "\n", algs->algorithm_names); - } else { + break; + case -1: + fprintf(stderr, + cBLUE " Encoding/Decoding test skipped: %s" cNORM "\n", + algs->algorithm_names); + break; + default: fprintf(stderr, cRED " Encoding/Decoding test failed: %s" cNORM "\n", algs->algorithm_names); ERR_print_errors_fp(stderr); errcnt++; + break; } } return errcnt;