From dadd6e1495f2e0f22f59347337827f19ec7d6f8a Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Sat, 16 Aug 2025 22:01:45 +0200 Subject: [PATCH] [tests] Set return codes in case of success/failure of the tests --- tests/testsecurity.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testsecurity.c b/tests/testsecurity.c index a306b2381..fe13b751b 100644 --- a/tests/testsecurity.c +++ b/tests/testsecurity.c @@ -106,6 +106,7 @@ int main() if (ciphertext_length == AESSTRINGCRYPT_ERROR) { printf("Error encrypting the string\n"); + return 1; } printf("Ciphertext length: %d\n", ciphertext_length); @@ -120,7 +121,10 @@ int main() if (plaintext_length == AESSTRINGCRYPT_ERROR) { printf("Error decrypting the string\n"); + return 1; } printf("Decrypted plaintext length: %d, %s\n", plaintext_length, plaintext); + + return 0; }