blowfish-test: Return different values for different errors
authorDiego Biurrun <diego@biurrun.de>
Tue, 17 May 2016 18:44:04 +0000 (20:44 +0200)
committerDiego Biurrun <diego@biurrun.de>
Thu, 19 May 2016 07:55:55 +0000 (09:55 +0200)
libavutil/tests/blowfish.c

index acaab70..93e8998 100644 (file)
@@ -174,13 +174,13 @@ int main(void)
         av_blowfish_crypt_ecb(&ctx, &tmptext_l[i], &tmptext_r[i], 0);
         if (tmptext_l[i] != ciphertext_l[i] || tmptext_r[i] != ciphertext_r[i]) {
             printf("Test encryption failed.\n");
-            return 1;
+            return 2;
         }
 
         av_blowfish_crypt_ecb(&ctx, &tmptext_l[i], &tmptext_r[i], 1);
         if (tmptext_l[i] != plaintext_l[i] || tmptext_r[i] != plaintext_r[i]) {
             printf("Test decryption failed.\n");
-            return 1;
+            return 3;
         }
     }
     printf("Test encryption/decryption success.\n");