diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-05-17 20:44:04 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-05-19 09:55:55 +0200 |
commit | a86ef80494d759807a5ef8dd12838f0690092e37 (patch) | |
tree | 24f1737a6c7b93e57ee7bf52d2c1a171a1365b57 /libavutil/tests | |
parent | b84f3a40034d28828c4ca639d012479a7eaace28 (diff) | |
download | ffmpeg-streaming-a86ef80494d759807a5ef8dd12838f0690092e37.zip ffmpeg-streaming-a86ef80494d759807a5ef8dd12838f0690092e37.tar.gz |
blowfish-test: Return different values for different errors
Diffstat (limited to 'libavutil/tests')
-rw-r--r-- | libavutil/tests/blowfish.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/tests/blowfish.c b/libavutil/tests/blowfish.c index acaab70..93e8998 100644 --- a/libavutil/tests/blowfish.c +++ b/libavutil/tests/blowfish.c @@ -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"); |