@@ -337,23 +337,23 @@ test_read (void)
337
337
338
338
r = mongoc_gridfs_file_readv (file , iov , 2 , 20 , 0 );
339
339
ASSERT_CMPLONG (r , = = , 20L );
340
- ASSERT_CMPINT ( memcmp ( iov [0 ].iov_base , "Bacon ipsu" , 10 ), = = , 0 );
341
- ASSERT_CMPINT ( memcmp ( iov [1 ].iov_base , "m dolor si" , 10 ), = = , 0 );
340
+ ASSERT_MEMCMP ( iov [0 ].iov_base , "Bacon ipsu" , 10 );
341
+ ASSERT_MEMCMP ( iov [1 ].iov_base , "m dolor si" , 10 );
342
342
343
343
ASSERT_CMPINT (mongoc_gridfs_file_seek (file , 1 , SEEK_SET ), = = , 0 );
344
344
r = mongoc_gridfs_file_readv (file , iov , 2 , 20 , 0 );
345
345
346
346
ASSERT_CMPLONG (r , = = , 20L );
347
- ASSERT_CMPINT ( memcmp ( iov [0 ].iov_base , "acon ipsum" , 10 ), = = , 0 );
348
- ASSERT_CMPINT ( memcmp ( iov [1 ].iov_base , " dolor sit" , 10 ), = = , 0 );
347
+ ASSERT_MEMCMP ( iov [0 ].iov_base , "acon ipsum" , 10 );
348
+ ASSERT_MEMCMP ( iov [1 ].iov_base , " dolor sit" , 10 );
349
349
350
350
ASSERT_CMPINT (mongoc_gridfs_file_seek (file , file -> chunk_size - 1 , SEEK_SET ), = = , 0 );
351
351
r = mongoc_gridfs_file_readv (file , iov , 2 , 20 , 0 );
352
352
353
353
ASSERT_CMPLONG (r , = = , 20L );
354
354
ASSERT_CMPINT64 (mongoc_gridfs_file_tell (file ), = = , (uint64_t )(file -> chunk_size + 19 ));
355
- ASSERT_CMPINT ( memcmp ( iov [0 ].iov_base , "turducken " , 10 ), = = , 0 );
356
- ASSERT_CMPINT ( memcmp ( iov [1 ].iov_base , "spare ribs" , 10 ), = = , 0 );
355
+ ASSERT_MEMCMP ( iov [0 ].iov_base , "turducken " , 10 );
356
+ ASSERT_MEMCMP ( iov [1 ].iov_base , "spare ribs" , 10 );
357
357
358
358
assert (mongoc_gridfs_file_seek (file , 20 , SEEK_END ) == 0 );
359
359
previous_errno = errno ;
0 commit comments