selftest: fixed an erroneous return code
diff --git a/programs/test/selftest.c b/programs/test/selftest.c
index 399f0d7..6279f58 100644
--- a/programs/test/selftest.c
+++ b/programs/test/selftest.c
@@ -224,7 +224,7 @@
if( pointer != NULL )
{
mbedtls_printf( "all-bits-zero is not a NULL pointer\n" );
- return( 1 );
+ return( EXIT_FAILURE );
}
/*
@@ -233,7 +233,7 @@
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 )