mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-27 03:50:29 +00:00
tests/format_check_test.c : Fix segfault.
This commit is contained in:
parent
4d13639134
commit
837e348993
@ -1,3 +1,8 @@
|
||||
2011-04-25 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* tests/format_check_test.c
|
||||
Fix segfault in test program.
|
||||
|
||||
2011-04-25 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* tests/format_check_test.c
|
||||
|
@ -81,6 +81,11 @@ format_check_test (void)
|
||||
sf_close (sndfile) ;
|
||||
unlink (filename) ;
|
||||
|
||||
if (major_fmt_info.extension != NULL && strcmp (major_fmt_info.extension, "sd2") == 0)
|
||||
{ snprintf (filename, sizeof (filename), "._format-check.%s", major_fmt_info.extension) ;
|
||||
unlink (filename) ;
|
||||
} ;
|
||||
|
||||
exit_if_true (
|
||||
sndfile && NOT (check_is_valid),
|
||||
"\n\nError : Format was not valid but file opened correctly.\n"
|
||||
|
Loading…
Reference in New Issue
Block a user