Remove unnecessary parameter in MPS reader unit test
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
5047b56758
commit
15da2fcf81
2 changed files with 5 additions and 12 deletions
|
@ -119,4 +119,4 @@ MPS Reader: Pausing, inconsistent continuation, #8
|
||||||
mbedtls_reader_inconsistent_usage:8
|
mbedtls_reader_inconsistent_usage:8
|
||||||
|
|
||||||
MPS Reader: Feed with invalid buffer (NULL)
|
MPS Reader: Feed with invalid buffer (NULL)
|
||||||
mbedtls_mps_reader_feed_empty:0
|
mbedtls_mps_reader_feed_empty:
|
||||||
|
|
|
@ -1073,7 +1073,7 @@ void mbedtls_reader_inconsistent_usage( int option )
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
/* BEGIN_CASE depends_on:TEST_SUITE_MPS_READER */
|
/* BEGIN_CASE depends_on:TEST_SUITE_MPS_READER */
|
||||||
void mbedtls_mps_reader_feed_empty( int option )
|
void mbedtls_mps_reader_feed_empty()
|
||||||
{
|
{
|
||||||
/* This test exercises the behaviour of the reader when it is
|
/* This test exercises the behaviour of the reader when it is
|
||||||
* fed with a NULL buffer. */
|
* fed with a NULL buffer. */
|
||||||
|
@ -1085,17 +1085,10 @@ void mbedtls_mps_reader_feed_empty( int option )
|
||||||
|
|
||||||
/* Preparation (lower layer) */
|
/* Preparation (lower layer) */
|
||||||
mbedtls_mps_reader_init( &rd, NULL, 0 );
|
mbedtls_mps_reader_init( &rd, NULL, 0 );
|
||||||
switch( option )
|
|
||||||
{
|
|
||||||
case 0: /* NULL buffer */
|
|
||||||
TEST_ASSERT( mbedtls_mps_reader_feed( &rd, NULL, sizeof( buf ) ) ==
|
TEST_ASSERT( mbedtls_mps_reader_feed( &rd, NULL, sizeof( buf ) ) ==
|
||||||
MBEDTLS_ERR_MPS_READER_INVALID_ARG );
|
MBEDTLS_ERR_MPS_READER_INVALID_ARG );
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
TEST_ASSERT( 0 );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
/* Subsequent feed-calls should still succeed. */
|
/* Subsequent feed-calls should still succeed. */
|
||||||
TEST_ASSERT( mbedtls_mps_reader_feed( &rd, buf, sizeof( buf ) ) == 0 );
|
TEST_ASSERT( mbedtls_mps_reader_feed( &rd, buf, sizeof( buf ) ) == 0 );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue