[tests] Set return codes in case of success/failure of the tests

pull/1860/head
Daniele Forsi IU5HKX 2025-08-16 22:01:45 +02:00 zatwierdzone przez Nate Bargmann
rodzic 014b34e674
commit dadd6e1495
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: FB2C5130D55A8819
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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;
}