int main (void) { int k ; if (file_exists ("libsndfile.spec.in")) chdir ("tests") ; for (k = 0 ; read_only_types [k].format ; k++) pipe_read_test (read_only_types [k].format, read_only_types [k].ext) ; for (k = 0 ; read_write_types [k].format ; k++) pipe_write_test (read_write_types [k].ext) ; for (k = 0 ; read_write_types [k].format ; k++) useek_pipe_rw_test (read_write_types [k].format, read_write_types [k].ext) ; if (0) pipe_test_others (read_write_types, read_only_types) ; return 0 ; } /* main */
int main (void) { int k ; if (file_exists ("libsndfile.spec.in")) exit_if_true (chdir ("tests") != 0, "\n Error : chdir ('tests') failed.\n") ; for (k = 0 ; read_only_types [k].format ; k++) pipe_read_test (read_only_types [k].format, read_only_types [k].ext) ; for (k = 0 ; read_write_types [k].format ; k++) pipe_write_test (read_write_types [k].ext) ; for (k = 0 ; read_write_types [k].format ; k++) useek_pipe_rw_test (read_write_types [k].format, read_write_types [k].ext) ; if (0) pipe_test_others (read_write_types, read_only_types) ; return 0 ; } /* main */