@@ -452,17 +452,17 @@ typedef struct PathTypeTestStruct {
452452} PathTypeTestStruct ;
453453
454454static const PathTypeTestStruct PATH_TYPE_TEST_STRUCTS [11 ] = {
455- {.path = "file://path/to/somewhere" , .is_url = 1 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
456- {.path = "http://path/to/somewhere" , .is_url = 1 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
455+ {.path = "file://path/to/somewhere" , .is_url = 1 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
456+ {.path = "http://path/to/somewhere" , .is_url = 1 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
457457 {.path = "https://path/to/somewhere" , .is_url = 1 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
458- {.path = "s3://path/to/somewhere" , .is_url = 1 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
459- {.path = "ftp://path/to/somewhere" , .is_url = 1 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
460- {.path = "/path/to/somewhere" , .is_url = 0 , .is_unix_absolute_path = 1 , .is_dos_absolute_path = 0 },
461- {.path = "path/to/somewhere" , .is_url = 0 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
462- {.path = "C:\\path\\to\\somewhere" , .is_url = 0 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 1 },
463- {.path = "C:/path/to/somewhere" , .is_url = 0 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 1 },
464- {.path = "\\\\path\\to\\somewhere" , .is_url = 0 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 1 },
465- {.path = "path\\to\\somewhere" , .is_url = 0 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
458+ {.path = "s3://path/to/somewhere" , .is_url = 1 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
459+ {.path = "ftp://path/to/somewhere" , .is_url = 1 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
460+ {.path = "/path/to/somewhere" , .is_url = 0 , .is_unix_absolute_path = 1 , .is_dos_absolute_path = 0 },
461+ {.path = "path/to/somewhere" , .is_url = 0 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
462+ {.path = "C:\\path\\to\\somewhere" , .is_url = 0 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 1 },
463+ {.path = "C:/path/to/somewhere" , .is_url = 0 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 1 },
464+ {.path = "\\\\path\\to\\somewhere" , .is_url = 0 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 1 },
465+ {.path = "path\\to\\somewhere" , .is_url = 0 , .is_unix_absolute_path = 0 , .is_dos_absolute_path = 0 },
466466};
467467
468468static int test_path_type_functions (void )
@@ -473,27 +473,21 @@ static int test_path_type_functions(void)
473473 if (imf_uri_is_url (path_type .path ) != path_type .is_url ) {
474474 fprintf (stderr ,
475475 "URL comparison test failed for '%s', got %d instead of expected %d\n" ,
476- path_type .path ,
477- path_type .is_url ,
478- !path_type .is_url );
476+ path_type .path , path_type .is_url , !path_type .is_url );
479477 goto fail ;
480478 }
481479
482480 if (imf_uri_is_unix_abs_path (path_type .path ) != path_type .is_unix_absolute_path ) {
483481 fprintf (stderr ,
484482 "Unix absolute path comparison test failed for '%s', got %d instead of expected %d\n" ,
485- path_type .path ,
486- path_type .is_unix_absolute_path ,
487- !path_type .is_unix_absolute_path );
483+ path_type .path , path_type .is_unix_absolute_path , !path_type .is_unix_absolute_path );
488484 goto fail ;
489485 }
490486
491487 if (imf_uri_is_dos_abs_path (path_type .path ) != path_type .is_dos_absolute_path ) {
492488 fprintf (stderr ,
493489 "DOS absolute path comparison test failed for '%s', got %d instead of expected %d\n" ,
494- path_type .path ,
495- path_type .is_dos_absolute_path ,
496- !path_type .is_dos_absolute_path );
490+ path_type .path , path_type .is_dos_absolute_path , !path_type .is_dos_absolute_path );
497491 goto fail ;
498492 }
499493 }
0 commit comments