From ababe86b9674dca24ffb6b342fe7af852cf53466 Mon Sep 17 00:00:00 2001 From: Emilia Kasper Date: Tue, 5 Apr 2016 14:29:06 +0200 Subject: 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 --- test/d2i_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/d2i_test.c') 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); -- cgit v1.2.3