summaryrefslogtreecommitdiffstats
path: root/test/d2i_test.c
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2016-04-05 14:29:06 +0200
committerEmilia Kasper <emilia@openssl.org>2016-04-05 17:05:40 +0200
commitababe86b9674dca24ffb6b342fe7af852cf53466 (patch)
treeee83b13735085f16145d498f8a1b8626538121ad /test/d2i_test.c
parent6e863f07376e1c8ae7c89477234db50838784d99 (diff)
testutil: return 1 on success
Require that test methods return 1 on success (not 0). This is more customary for OpenSSL. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/d2i_test.c')
-rw-r--r--test/d2i_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/d2i_test.c b/test/d2i_test.c
index cf01012ef9..6ffdf5507a 100644
--- a/test/d2i_test.c
+++ b/test/d2i_test.c
@@ -40,13 +40,13 @@ static int execute_test(D2I_TEST_FIXTURE fixture)
{
BIO *bio = NULL;
ASN1_VALUE *value = NULL;
- int ret = 1;
+ int ret = 0;
unsigned char buf[2048];
const unsigned char *buf_ptr = buf;
int len;
if ((bio = BIO_new_file(test_file, "r")) == NULL)
- return 1;
+ return 0;
/*
* We don't use ASN1_item_d2i_bio because it, apparently,
@@ -60,7 +60,7 @@ static int execute_test(D2I_TEST_FIXTURE fixture)
if (value != NULL)
goto err;
- ret = 0;
+ ret = 1;
err:
BIO_free(bio);