evpobr
fe50b95615
CMake: Fix MinGW with Clang compiler warnings
2020-08-31 09:30:42 +05:00
Erik de Castro Lopo
ba8a7577c6
Add support for more than 1000 cue points in WAV and AIFF files ( #434 )
...
This work was originally submitted by Diemo Schwarz <schwarz@ircam.fr> in
PR https://github.com/erikd/libsndfile/pull/197 which was rebased and
cleaned up.
Closes: https://github.com/erikd/libsndfile/pull/197
2018-12-23 20:32:56 +11:00
Erik de Castro Lopo
cc5e831a75
A couple of minor cstyle fixes
2017-10-01 16:33:41 +11:00
Erik de Castro Lopo
b506de463d
Fix MSAN errors
...
Fix multiple errors uncovered by Clang's Memory Sanitizer.
Closes: https://github.com/erikd/libsndfile/issues/248
2017-05-04 18:42:24 +10:00
evpobr
58737ceb48
tests: Fixes for MSVC
...
* src/test_main.c: Fix undeclared off_t type with MSVC
* tests/misc_test.c: Fix undefined S_ISCHR & S_ISBLK with MSVC
* tests/stdin_test.c: Fix undefined STDIN_FILENO with MSVC
* tests/win32_ordinal_test.c: Fix undeclared getcwd() with MSVC
* Fix missing unistd.h under Win32
Related: https://github.com/erikd/libsndfile/issues/154
2017-04-14 13:03:27 +10:00
Erik de Castro Lopo
08dfe89c61
tests: Remove need for POSIX truncate
function
...
Windows doesn't have `truncate` and since it was only being used
to truncate the file to zero length, implement a cross platform
`truncate_file_to_zero`.
Based on an idea from <evpobr@gmail.com>.
2016-09-09 19:15:42 +10:00
Erik de Castro Lopo
05288ca11e
Revert "Drop use of __USE_MINGW_ANSI_STDIO"
...
This reverts commit ac0c02de3c
.
This define is needed when cross compiling from Linux to Windows.
2016-07-03 19:02:03 +10:00
Erik de Castro Lopo
ac0c02de3c
Drop use of __USE_MINGW_ANSI_STDIO
2016-07-03 11:05:08 +10:00
Erik de Castro Lopo
15259c2de4
tests/utils.tpl: Add test_format_or_die()
...
And use it in tests/write_read_test.tpl.
2016-02-20 11:35:54 +11:00
Erik de Castro Lopo
fbb49e9739
tests/: Revise target values
...
* floating_point_test.tpl
* checksum_test.c
2015-10-19 12:49:33 +11:00
Erik de Castro Lopo
55f0beddc6
tests: Improvements to floating point tests
...
Two basic changes:
* Increase DFT_DATA_LENGTH to 8192.
* Fill the data to 5/6ths of the length instead of 1/2.
The first is designed to catch errors in CAF/alac encoding when passed
more than 4096 samples at a time. The second makes it easier to catch
this kind os problem.
2015-10-19 12:41:50 +11:00
Erik de Castro Lopo
eea13650b9
tests/ : Fix undefined behaviour warnings.
2014-12-16 13:21:19 +11:00
Erik de Castro Lopo
40736c98b4
tests/ : Fix warnings from clang 3.5.
2014-07-31 08:57:49 +10:00
Erik de Castro Lopo
3e91aaf7aa
src/* tests/* : Fix problems found by clang sanitizer.
2014-04-05 13:34:35 +11:00
Erik de Castro Lopo
1213c343ec
tests/utils.tpl : Improve compare_*_or_die() functions.
2012-10-11 19:38:50 +11:00
Erik de Castro Lopo
249c9253a7
tests/utils.tpl : Rename gen_lowpass_noise_float() to gen_lowpass_signal_float().
2012-06-20 21:30:07 +10:00
Erik de Castro Lopo
d22a57b887
tests/utils.tpl : Use gnu_printf format checking with mingw compiler.
2012-02-26 11:21:24 +11:00
Erik de Castro Lopo
518e3be6ef
tests/ : Fix all printf format warnings.
2012-02-18 12:59:32 +11:00
Erik de Castro Lopo
f4da909c5d
tests/utils.tpl : Add GCC specific testing for format string parameters for exit_if_true().
2012-02-18 11:58:25 +11:00
Erik de Castro Lopo
18c1105981
Whitespace and cstyle fixes.
2012-01-20 22:46:13 +11:00
Erik de Castro Lopo
952d4e4cd7
Fix compiler warnings with latest MinGW cross compiler.
2011-10-28 19:15:22 +11:00
Erik de Castro Lopo
603f0fb519
tests/utils.tpl : Clean up use of memset.
2011-07-06 20:12:10 +10:00
Erik de Castro Lopo
9b8d1e0f2f
Fix a bunch of compiler warnings with gcc-4.6.
2011-03-28 18:43:05 +11:00
Erik de Castro Lopo
44594192ce
tests/utils.tpl : Add NOT macro to util.h.
2011-03-25 18:58:12 +11:00
Erik de Castro Lopo
6b032a1b5f
tests/utils.tpl : Move sf_info_(clear|setup) inside #ifdef SNDFILE_H.
2011-03-18 18:27:22 +11:00
Erik de Castro Lopo
869a4d4e94
tests/utils.tpl : Add static inline functions sf_info_clear() and sf_info_setup().
2011-03-15 20:37:58 +11:00
Erik de Castro Lopo
f209698448
Update copyright dates.
2011-01-19 21:36:56 +11:00
Erik de Castro Lopo
08346be458
tests/utils.tpl : Add functions test_read_raw_or_die and test_write_raw_or_die.
2010-02-28 13:23:56 +11:00
Erik de Castro Lopo
997740916f
tests/utils.tpl : On windows, make sure the open() function doesn't get called with a third parameter of 0 which fails for no good reason.
2009-09-28 18:46:34 +10:00
Erik de Castro Lopo
37a36e7746
Remove WIN32 snprintf #define.
2009-09-19 20:30:58 +10:00
Erik de Castro Lopo
5b2779996c
tests/utils.tpl : Add check of sf_error to test_open_file_or_die().
2009-04-12 21:38:59 +10:00
Erik de Castro Lopo
a38e0b105e
Update copyright notices.
2009-02-07 15:20:17 +11:00
Erik de Castro Lopo
5f99d78bdb
tests/utils.tpl tests/pcm_test.tpl : Update check_file_hash_or_die to use 64 bit hash.
2008-10-05 15:02:07 +11:00
Erik de Castro Lopo
4a5db55371
tests/utils.tpl : Fix win64 issues.
2008-09-29 18:32:55 +10:00
Erik de Castro Lopo
3596e4f77c
tests/utils.tpl : Make sure buffer is intialialized.
2008-08-18 21:53:16 +10:00
Erik de Castro Lopo
9189b62ec2
tests/utils.tpl : Add new function create_short_sndfile().
2008-08-16 16:28:59 +10:00
Erik de Castro Lopo
a0805fd3af
tests/utils.tpl : Constify function dump_data_to_file.
2008-05-19 11:45:44 +10:00
Erik de Castro Lopo
7868688923
tests/utils.tpl : Improve output of print_test_name when filename is NULL or zero length.
2008-05-19 11:38:23 +10:00
Erik de Castro Lopo
d3321b7fc0
Whitespace and C style cleanups.
2008-04-19 19:19:24 +10:00
Erik de Castro Lopo
ef033ccb8c
tests : Always pass 0 as the third argument to open when OS_IS_WIN32.
2008-04-06 20:26:16 +10:00
Erik de Castro Lopo
9b2c327b1f
tests/utils.tpl : Add function file_length_fd which wraps fstat.
2008-01-08 18:11:02 +11:00
Erik de Castro Lopo
19f5d65794
tests/utils.(def|tpl) : Add compare_XXX_or_die functions.
2007-12-14 20:41:33 +11:00
Erik de Castro Lopo
7dd52c0db8
tests/utils.tpl : Include <stdint.h>.
2007-12-08 09:28:59 +11:00
Erik de Castro Lopo
f1b4ef2174
Merge from -mdev.
2007-11-17 21:09:28 +11:00
Erik de Castro Lopo
a97e89d115
Improve handling of requirements for O_BINARY as suggested by Ed Schouten.
2007-11-12 19:55:30 +11:00
Erik de Castro Lopo
e971368bd7
Add function file_length to utils.tpl and use it in multi_file_test.c.
2007-11-03 21:46:57 +11:00
Erik de Castro Lopo
f3249016df
tests/utils.tpl : Increase the printing width for print_test_name().
2007-11-03 11:57:42 +11:00
Erik de Castro Lopo
185fb36c1e
tests/utils.tpl : Make oct_save_* functions const correct.
2007-08-19 00:50:46 +10:00
Erik de Castro Lopo
180abbc54b
tests/utils.tpl : Add format parameter to write_mono_file.
2007-06-10 12:16:42 +10:00
Erik de Castro Lopo
3eb08a6b70
tests/utils.tpl : Add function write_mono_file.
2007-06-10 11:34:11 +10:00