Lines Matching defs:filename
42 static void string_start_test (const char *filename, int typemajor) ;
43 static void string_start_end_test (const char *filename, int typemajor) ;
44 static void string_multi_set_test (const char *filename, int typemajor) ;
45 static void string_rdwr_test (const char *filename, int typemajor) ;
46 static void string_short_rdwr_test (const char *filename, int typemajor) ;
47 static void string_rdwr_grow_test (const char *filename, int typemajor) ;
48 static void string_header_update (const char *filename, int typemajor) ;
50 static void software_string_test (const char *filename) ;
216 string_start_end_test (const char *filename, int typemajor)
222 get_unique_test_name (&filename, STR_TEST_PREFIX) ;
223 print_test_name ("string_start_end_test", filename) ;
231 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
234 sf_set_string (file, SF_STR_TITLE, filename) ;
253 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
263 if (cptr == NULL || strcmp (filename, cptr) != 0)
266 printf (" Bad filename : %s\n", cptr) ;
359 unlink (filename) ;
365 string_start_test (const char *filename, int formattype)
372 get_unique_test_name (&filename, STR_TEST_PREFIX) ;
373 print_test_name ("string_start_test", filename) ;
396 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
399 sf_set_string (file, SF_STR_TITLE, filename) ;
419 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
429 if (cptr == NULL || strcmp (filename, cptr) != 0)
432 printf (" Bad filename : %s\n", cptr) ;
538 unlink (filename) ;
544 string_multi_set_test (const char *filename, int typemajor)
556 get_unique_test_name (&filename, STR_TEST_PREFIX) ;
557 print_test_name (__func__, filename) ;
565 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
594 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
614 unlink (filename) ;
620 string_rdwr_test (const char *filename, int typemajor)
626 get_unique_test_name (&filename, STR_TEST_PREFIX) ;
627 print_test_name (__func__, filename) ;
628 create_short_sndfile (filename, typemajor | SF_FORMAT_PCM_16, 2) ;
631 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ;
636 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ;
643 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ;
648 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ;
654 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ;
667 unlink (filename) ;
673 string_short_rdwr_test (const char *filename, int typemajor)
679 get_unique_test_name (&filename, STR_TEST_PREFIX) ;
680 print_test_name (__func__, filename) ;
688 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_FALSE, __LINE__) ;
698 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ;
713 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ;
726 unlink (filename) ;
746 software_string_test (const char *filename)
749 get_unique_test_name (&filename, STR_TEST_PREFIX) ;
750 print_test_name (__func__, filename) ;
759 file = test_open_file_or_die (filename, SFM_WRITE, &info, SF_TRUE, __LINE__) ;
768 file = test_open_file_or_die (filename, SFM_READ, &info, SF_TRUE, __LINE__) ;
778 unlink (filename) ;
784 string_rdwr_grow_test (const char *filename, int typemajor)
790 get_unique_test_name (&filename, STR_TEST_PREFIX) ;
791 print_test_name (__func__, filename) ;
804 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
815 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
823 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
836 unlink (filename) ;
842 string_header_update (const char *filename, int typemajor)
849 get_unique_test_name (&filename, STR_TEST_PREFIX) ;
850 print_test_name (__func__, filename) ;
859 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
866 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
876 file1 = test_open_file_or_die (filename, SFM_READ, &sfinfo1, SF_TRUE, __LINE__) ;
889 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
896 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
903 unlink (filename) ;