From 38db006e0c226813f11db68702751e5dea9a5ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 19 Aug 2015 10:24:34 +0200 Subject: [PATCH] Finish test in pkwrite --- tests/suites/test_suite_pkwrite.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_pkwrite.function b/tests/suites/test_suite_pkwrite.function index 1c98bd143..8b20640f3 100644 --- a/tests/suites/test_suite_pkwrite.function +++ b/tests/suites/test_suite_pkwrite.function @@ -58,7 +58,7 @@ void pk_write_key_check( char *key_file ) TEST_ASSERT( mbedtls_pk_parse_keyfile( &key, key_file, NULL ) == 0 ); ret = mbedtls_pk_write_key_pem( &key, buf, sizeof( buf )); - TEST_ASSERT( ret >= 0 ); + TEST_ASSERT( ret == 0 ); f = fopen( key_file, "r" ); TEST_ASSERT( f != NULL );