Add 'exit' label and variable initialization to relevant test suite functions

This commit is contained in:
Paul Bakker
2014-07-10 15:26:12 +02:00
parent 318d0fe844
commit bd51b262d1
31 changed files with 235 additions and 28 deletions

View File

@@ -36,6 +36,7 @@ void pk_write_pubkey_check( char *key_file )
TEST_ASSERT( ilen == strlen( (char *) buf ) );
TEST_ASSERT( strncmp( (char *) buf, (char *) check_buf, sizeof( buf ) ) == 0 );
exit:
pk_free( &key );
}
/* END_CASE */
@@ -67,6 +68,7 @@ void pk_write_key_check( char *key_file )
TEST_ASSERT( ilen == strlen( (char *) buf ) );
TEST_ASSERT( strncmp( (char *) buf, (char *) check_buf, sizeof( buf ) ) == 0 );
exit:
pk_free( &key );
}
/* END_CASE */