mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 17:21:09 +00:00
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
|
@ -119,4 +119,4 @@ MPS Reader: Pausing, inconsistent continuation, #8
|
|||
mbedtls_reader_inconsistent_usage:8
|
||||
|
||||
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 */
|
||||
|
||||
/* 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
|
||||
* fed with a NULL buffer. */
|
||||
|
@ -1085,17 +1085,10 @@ void mbedtls_mps_reader_feed_empty( int option )
|
|||
|
||||
/* Preparation (lower layer) */
|
||||
mbedtls_mps_reader_init( &rd, NULL, 0 );
|
||||
switch( option )
|
||||
{
|
||||
case 0: /* NULL buffer */
|
||||
TEST_ASSERT( mbedtls_mps_reader_feed( &rd, NULL, sizeof( buf ) ) ==
|
||||
MBEDTLS_ERR_MPS_READER_INVALID_ARG );
|
||||
break;
|
||||
|
||||
default:
|
||||
TEST_ASSERT( 0 );
|
||||
break;
|
||||
}
|
||||
TEST_ASSERT( mbedtls_mps_reader_feed( &rd, NULL, sizeof( buf ) ) ==
|
||||
MBEDTLS_ERR_MPS_READER_INVALID_ARG );
|
||||
|
||||
/* Subsequent feed-calls should still succeed. */
|
||||
TEST_ASSERT( mbedtls_mps_reader_feed( &rd, buf, sizeof( buf ) ) == 0 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue