aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2016-06-24 11:10:35 +0200
committerClément Bœsch <clement@stupeflix.com>2016-06-24 11:10:35 +0200
commit1ca383c8d4e8f48d12b7ab0ba8355534f33f5087 (patch)
tree079fc371ee4fd1faf3bb84f4133559ceef4b12b7
parent2c45254a773f22f1c3b80acae9e8619c22088047 (diff)
parenta86ef80494d759807a5ef8dd12838f0690092e37 (diff)
downloadffmpeg-1ca383c8d4e8f48d12b7ab0ba8355534f33f5087.tar.gz
Merge commit 'a86ef80494d759807a5ef8dd12838f0690092e37'
* commit 'a86ef80494d759807a5ef8dd12838f0690092e37': blowfish-test: Return different values for different errors Merged-by: Clément Bœsch <clement@stupeflix.com>
-rw-r--r--libavutil/tests/blowfish.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/tests/blowfish.c b/libavutil/tests/blowfish.c
index 2c2e004830..0f76a85b92 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");