History

Fix typos for nullptr_test additions. Add clone_test and nullptr_test to `make check` and match formatting of reset_test

Peter Hoyes committed 8 years ago

Commit 7dcc9bb1 parent eb077a33 files · +18 −6Browse files

Unified · Split

3 files
  1. Makefile.am +4 −2
  2. tests/clone_test.c +5 −1
  3. tests/nullptr_test.c +9 −3
Makefile.am+4−2
@@ -90,6 +90,8 @@ check: $(check_PROGRAMS) · 89 unmodified lines
90 tests/simple_test90 tests/simple_test
91 tests/callback_test91 tests/callback_test
92 tests/reset_test92 tests/reset_test
93 tests/clone_test
94 tests/nullptr_test
93 tests/multi_channel_test95 tests/multi_channel_test
94 tests/varispeed_test96 tests/varispeed_test
95 tests/float_short_test97 tests/float_short_test
@@ -140,8 +142,8 @@ tests_varispeed_test_LDADD = src/libsamplerate.la $(FFTW3_LIBS) · 44 unmodified lines
140tests_clone_test_SOURCES = tests/clone_test.c tests/util.c tests/util.h142tests_clone_test_SOURCES = tests/clone_test.c tests/util.c tests/util.h
141tests_clone_test_LDADD = src/libsamplerate.la143tests_clone_test_LDADD = src/libsamplerate.la
142 144
143tests_nullptr_test_SOURCES = testes/nullptr_test.c tests/util.c tests/util.h145tests_nullptr_test_SOURCES = tests/nullptr_test.c tests/util.c tests/util.h
144tests_nullptr_test_LDADD = src/libsamplerate/la146tests_nullptr_test_LDADD = src/libsamplerate.la
145 147
146# This program is for evaluating other sample rate converters.148# This program is for evaluating other sample rate converters.
147 149
tests/clone_test.c+5−1
@@ -30,7 +30,7 @@ clone_test (int converter) · 29 unmodified lines
30 30
31 int error, frame, ch, index ;31 int error, frame, ch, index ;
32 32
33 printf (" clone_test (%-28s) ....... ", src_get_name (converter)) ;33 printf (" clone_test (%-28s) ....... ", src_get_name (converter)) ;
34 fflush (stdout) ;34 fflush (stdout) ;
35 35
36 memset (input_serial, 0, sizeof (input_serial)) ;36 memset (input_serial, 0, sizeof (input_serial)) ;
@@ -117,9 +117,13 @@ clone_test (int converter) · 80 unmodified lines
117int117int
118main (void)118main (void)
119{119{
120 puts("");
121
120 clone_test (SRC_ZERO_ORDER_HOLD) ;122 clone_test (SRC_ZERO_ORDER_HOLD) ;
121 clone_test (SRC_LINEAR) ;123 clone_test (SRC_LINEAR) ;
122 clone_test (SRC_SINC_FASTEST) ;124 clone_test (SRC_SINC_FASTEST) ;
123 125
126 puts("");
127
124 return 0 ;128 return 0 ;
125} /* main */129} /* main */
tests/nullptr_test.c+9−3
@@ -25,9 +25,9 @@ nullptr_test (int converter) · 24 unmodified lines
25 SRC_STATE* src_state ;25 SRC_STATE* src_state ;
26 SRC_DATA src_data, src_data2 ;26 SRC_DATA src_data, src_data2 ;
27 27
28 int error, frame, ch, index ;28 int error ;
29 29
30 printf (" nullptr_test (%-28s) ....... ", src_get_name (converter)) ;30 printf (" nullptr_test (%-28s) ....... ", src_get_name (converter)) ;
31 fflush (stdout) ;31 fflush (stdout) ;
32 32
33 memset (input, 0, sizeof (input)) ;33 memset (input, 0, sizeof (input)) ;
@@ -86,12 +86,18 @@ nullptr_test (int converter) · 52 unmodified lines
86 src_state = src_delete (src_state) ;86 src_state = src_delete (src_state) ;
87 87
88 puts ("ok") ;88 puts ("ok") ;
89} /* clone_test */89} /* nullptr_test */
90 90
91int91int
92main (void)92main (void)
93{93{
94 puts("");
95
94 nullptr_test (SRC_ZERO_ORDER_HOLD) ;96 nullptr_test (SRC_ZERO_ORDER_HOLD) ;
97 nullptr_test (SRC_LINEAR) ;
98 nullptr_test (SRC_SINC_FASTEST) ;
99
100 puts("");
95 101
96 return 0 ;102 return 0 ;
97} /* main */103} /* main */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t