@@ -178,35 +178,6 @@ static void test_stream_flash_buffered_write_cross_buf_border(void)
178
178
VERIFY_WRITTEN (0 , BUF_LEN * 2 + BUF_LEN / 2 );
179
179
}
180
180
181
- static void test_stream_flash_buffered_write_unaligned (void )
182
- {
183
- int rc ;
184
-
185
- if (flash_get_write_block_size (fdev ) == 1 ) {
186
- ztest_test_skip ();
187
- }
188
-
189
- init_target ();
190
-
191
- /* Test unaligned data size */
192
- rc = stream_flash_buffered_write (& ctx , write_buf , 1 , true);
193
- zassert_equal (rc , 0 , "expected success (%d)" , rc );
194
-
195
- /* 1 byte should be dumped to flash */
196
- VERIFY_WRITTEN (0 , 1 );
197
-
198
- rc = stream_flash_init (& ctx , fdev , buf , BUF_LEN , FLASH_BASE + BUF_LEN ,
199
- 0 , stream_flash_callback );
200
- zassert_equal (rc , 0 , "expected success" );
201
-
202
- /* Test unaligned data size */
203
- rc = stream_flash_buffered_write (& ctx , write_buf , BUF_LEN - 1 , true);
204
- zassert_equal (rc , 0 , "expected success" );
205
-
206
- /* BUF_LEN-1 bytes should be dumped to flash */
207
- VERIFY_WRITTEN (BUF_LEN , BUF_LEN - 1 );
208
- }
209
-
210
181
static void test_stream_flash_buffered_write_multi_page (void )
211
182
{
212
183
int rc ;
@@ -377,7 +348,6 @@ void test_main(void)
377
348
ztest_unit_test (test_stream_flash_init ),
378
349
ztest_unit_test (test_stream_flash_buffered_write ),
379
350
ztest_unit_test (test_stream_flash_buffered_write_cross_buf_border ),
380
- ztest_unit_test (test_stream_flash_buffered_write_unaligned ),
381
351
ztest_unit_test (test_stream_flash_buffered_write_multi_page ),
382
352
ztest_unit_test (test_stream_flash_buf_size_greater_than_page_size ),
383
353
ztest_unit_test (test_stream_flash_buffered_write_callback ),
0 commit comments