Don't print warning in case LTC_NO_TEST is defined.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel 2026-04-24 13:38:50 +02:00 committed by Karel Miko
parent 0834f876cd
commit 229f540c48

View file

@ -14,6 +14,10 @@ LTC_NOP_TEST(nop_test)
void run_cmd(int res, int line, const char *file, const char *cmd, const char *algorithm)
{
if (res != CRYPT_OK) {
#ifdef LTC_NO_TEST
if (res == CRYPT_NOP)
return;
#endif
fprintf(stderr, "%s (%d)%s%s\n%s:%d:%s\n",
error_to_string(res), res,
(algorithm ? " - " : ""), (algorithm ? algorithm : ""),