@@ -3922,6 +3922,7 @@ static int s_test_s3_round_trip_default_get_fc_helper(
39223922 struct aws_allocator * allocator ,
39233923 void * ctx ,
39243924 bool via_header ,
3925+ uint32_t object_size_mb ,
39253926 enum aws_s3_tester_full_object_checksum full_object_checksum ) {
39263927 (void )ctx ;
39273928
@@ -3943,8 +3944,9 @@ static int s_test_s3_round_trip_default_get_fc_helper(
39433944 snprintf (
39443945 object_path_sprintf_buffer ,
39453946 sizeof (object_path_sprintf_buffer ),
3946- "/prefix/round_trip/test_default_fc_%d.txt" ,
3947- algorithm );
3947+ "/prefix/round_trip/test_default_fc_%d_%d.txt" ,
3948+ algorithm ,
3949+ object_size_mb );
39483950
39493951 ASSERT_SUCCESS (aws_s3_tester_upload_file_path_init (
39503952 allocator , & path_buf , aws_byte_cursor_from_c_str (object_path_sprintf_buffer )));
@@ -3960,7 +3962,7 @@ static int s_test_s3_round_trip_default_get_fc_helper(
39603962 .checksum_via_header = via_header ,
39613963 .put_options =
39623964 {
3963- .object_size_mb = 1 ,
3965+ .object_size_mb = object_size_mb ,
39643966 .object_path_override = object_path ,
39653967 },
39663968 };
@@ -4000,18 +4002,22 @@ static int s_test_s3_round_trip_default_get_fc_helper(
40004002
40014003AWS_TEST_CASE (test_s3_round_trip_default_get_fc , s_test_s3_round_trip_default_get_fc )
40024004static int s_test_s3_round_trip_default_get_fc (struct aws_allocator * allocator , void * ctx ) {
4003- return s_test_s3_round_trip_default_get_fc_helper (allocator , ctx , false, AWS_TEST_FOC_NONE );
4005+ return s_test_s3_round_trip_default_get_fc_helper (allocator , ctx , false, 1 /*object_size_mb*/ , AWS_TEST_FOC_NONE );
4006+ }
4007+ AWS_TEST_CASE (test_s3_round_trip_empty_fc , s_test_s3_round_trip_empty_fc )
4008+ static int s_test_s3_round_trip_empty_fc (struct aws_allocator * allocator , void * ctx ) {
4009+ return s_test_s3_round_trip_default_get_fc_helper (allocator , ctx , false, 0 , AWS_TEST_FOC_NONE );
40044010}
40054011
40064012AWS_TEST_CASE (test_s3_round_trip_default_get_fc_header , s_test_s3_round_trip_default_get_fc_header )
40074013static int s_test_s3_round_trip_default_get_fc_header (struct aws_allocator * allocator , void * ctx ) {
4008- return s_test_s3_round_trip_default_get_fc_helper (allocator , ctx , true, AWS_TEST_FOC_NONE );
4014+ return s_test_s3_round_trip_default_get_fc_helper (allocator , ctx , true, 1 , AWS_TEST_FOC_NONE );
40094015}
40104016AWS_TEST_CASE (
40114017 test_s3_round_trip_default_get_full_object_checksum_fc ,
40124018 s_test_s3_round_trip_default_get_full_object_checksum_fc )
40134019static int s_test_s3_round_trip_default_get_full_object_checksum_fc (struct aws_allocator * allocator , void * ctx ) {
4014- return s_test_s3_round_trip_default_get_fc_helper (allocator , ctx , false, AWS_TEST_FOC_HEADER );
4020+ return s_test_s3_round_trip_default_get_fc_helper (allocator , ctx , false, 1 , AWS_TEST_FOC_HEADER );
40154021}
40164022
40174023static int s_test_s3_round_trip_multipart_get_fc_helper (struct aws_allocator * allocator , void * ctx , bool via_header ) {
0 commit comments