if (t->meth) {
t->ntests++;
if (t->skip) {
- TEST_info("Line %d skipped %s test", t->start_line, t->meth->name);
+ /*TEST_info("Line %d skipped %s test", t->start_line, t->meth->name);
+ */
t->nskip++;
} else {
/* run the test */
return 0;
}
if (!check_test_error(t)) {
- if (t->err)
- ERR_print_errors_fp(stderr);
+ test_openssl_errors();
t->errors++;
}
}
t->err = "DIGESTSIGNFINAL_LENGTH_ERROR";
goto err;
}
- if (!TEST_ptr(mac = OPENSSL_malloc(mac_len))
- || !EVP_DigestSignFinal(mctx, mac, &mac_len)
- || !TEST_mem_eq(mdata->output, mdata->output_len, mac, mac_len)) {
+ if (!TEST_ptr(mac = OPENSSL_malloc(mac_len))) {
t->err = "TEST_FAILURE";
goto err;
}
+ if (!EVP_DigestSignFinal(mctx, mac, &mac_len)
+ || !TEST_mem_eq(mdata->output, mdata->output_len, mac, mac_len)) {
+ t->err = "TEST_MAC_ERR";
+ goto err;
+ }
t->err = NULL;
err: