@@ -306,26 +306,6 @@ static void test_stream_flash_buffered_write_callback(void)
306
306
zassert_equal (rc , - EFAULT , "expected failure from callback" );
307
307
}
308
308
309
- static void test_stream_flash_flush (void )
310
- {
311
- int rc ;
312
- int num_pages = MAX_NUM_PAGES - 1 ;
313
-
314
- init_target ();
315
-
316
- rc = stream_flash_buffered_write (& ctx , write_buf ,
317
- (page_size * num_pages ) + 128 , false);
318
- zassert_equal (rc , 0 , "expected success" );
319
-
320
- /* Perform flush with NULL data pointer and non-0 lentgth */
321
- rc = stream_flash_buffered_write (& ctx , NULL , 4 , true);
322
- zassert_true (rc < 0 , "expected failure" );
323
-
324
- /* Perform flush with NULL data pointer and 0 lentgth */
325
- rc = stream_flash_buffered_write (& ctx , NULL , 0 , true);
326
- zassert_equal (rc , 0 , "expected success" );
327
- }
328
-
329
309
#ifdef CONFIG_STREAM_FLASH_ERASE
330
310
static void test_stream_flash_buffered_write_whole_page (void )
331
311
{
@@ -401,7 +381,6 @@ void test_main(void)
401
381
ztest_unit_test (test_stream_flash_buffered_write_multi_page ),
402
382
ztest_unit_test (test_stream_flash_buf_size_greater_than_page_size ),
403
383
ztest_unit_test (test_stream_flash_buffered_write_callback ),
404
- ztest_unit_test (test_stream_flash_flush ),
405
384
ztest_unit_test (test_stream_flash_buffered_write_whole_page ),
406
385
ztest_unit_test (test_stream_flash_erase_page ),
407
386
ztest_unit_test (test_stream_flash_bytes_written )
0 commit comments