shithub: libsamplerate

Download patch

ref: 7dcc9bb727dae4e2010cdc6ef7cda101b05509a4
parent: eb077a3a3fad1905321e5a0ad1d76c601fba103b
author: Peter Hoyes <pahoyes@gmail.com>
date: Wed Jun 6 11:01:22 EDT 2018

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

--- a/Makefile.am
+++ b/Makefile.am
@@ -90,6 +90,8 @@
 	tests/simple_test
 	tests/callback_test
 	tests/reset_test
+	tests/clone_test
+	tests/nullptr_test
 	tests/multi_channel_test
 	tests/varispeed_test
 	tests/float_short_test
@@ -140,8 +142,8 @@
 tests_clone_test_SOURCES = tests/clone_test.c tests/util.c tests/util.h
 tests_clone_test_LDADD = src/libsamplerate.la
 
-tests_nullptr_test_SOURCES = testes/nullptr_test.c tests/util.c tests/util.h
-tests_nullptr_test_LDADD = src/libsamplerate/la
+tests_nullptr_test_SOURCES = tests/nullptr_test.c tests/util.c tests/util.h
+tests_nullptr_test_LDADD = src/libsamplerate.la
 
 # This program is for evaluating other sample rate converters.
 
--- a/tests/clone_test.c
+++ b/tests/clone_test.c
@@ -30,7 +30,7 @@
 
 	int error, frame, ch, index ;
 
-	printf ("        clone_test     (%-28s) ....... ", src_get_name (converter)) ;
+	printf ("        clone_test          (%-28s) ....... ", src_get_name (converter)) ;
 	fflush (stdout) ;
 
 	memset (input_serial, 0, sizeof (input_serial)) ;
@@ -117,9 +117,13 @@
 int
 main (void)
 {
+	puts("");
+
 	clone_test (SRC_ZERO_ORDER_HOLD) ;
 	clone_test (SRC_LINEAR) ;
 	clone_test (SRC_SINC_FASTEST) ;
+
+	puts("");
 
 	return 0 ;
 } /* main */
--- a/tests/nullptr_test.c
+++ b/tests/nullptr_test.c
@@ -25,9 +25,9 @@
 	SRC_STATE* src_state ;
 	SRC_DATA src_data, src_data2 ;
 
-	int error, frame, ch, index ;
+	int error ;
 
-	printf ("        nullptr_test     (%-28s) ....... ", src_get_name (converter)) ;
+	printf ("        nullptr_test        (%-28s) ....... ", src_get_name (converter)) ;
 	fflush (stdout) ;
 
 	memset (input, 0, sizeof (input)) ;
@@ -86,12 +86,18 @@
 	src_state = src_delete (src_state) ;
 
 	puts ("ok") ;
-} /* clone_test */
+} /* nullptr_test */
 
 int
 main (void)
 {
+	puts("");
+
 	nullptr_test (SRC_ZERO_ORDER_HOLD) ;
+	nullptr_test (SRC_LINEAR) ;
+	nullptr_test (SRC_SINC_FASTEST) ;
+
+	puts("");
 
 	return 0 ;
 } /* main */