From 6d51b6331600566a7c31326afc790181cba262b7 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 20 Dec 2017 20:25:03 +0100 Subject: [PATCH] selftest: fixed an erroneous return code --- programs/test/selftest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/test/selftest.c b/programs/test/selftest.c index 399f0d721..6279f58a9 100644 --- a/programs/test/selftest.c +++ b/programs/test/selftest.c @@ -224,7 +224,7 @@ int main( int argc, char *argv[] ) if( pointer != NULL ) { mbedtls_printf( "all-bits-zero is not a NULL pointer\n" ); - return( 1 ); + return( EXIT_FAILURE ); } /* @@ -233,7 +233,7 @@ int main( int argc, char *argv[] ) if( run_test_snprintf() != 0 ) { mbedtls_printf( "the snprintf implementation is broken\n" ); - return( 0 ); + return( EXIT_FAILURE ); } if( argc == 2 && strcmp( argv[1], "-quiet" ) == 0 )