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

Showing the changes to tests (2 of 3 files). Show all

Unified · Split

2 files
  1. tests/clone_test.c +5 −1
  2. tests/nullptr_test.c +9 −3
tests/clone_test.c+5−1
@@ -30,7 +30,7 @@ clone_test (int converter) · 29 unmodified lines
3030
3131 int error, frame, ch, index ;
3232
33− printf (" clone_test (%-28s) ....... ", src_get_name (converter)) ;
33+ printf (" clone_test (%-28s) ....... ", src_get_name (converter)) ;
3434 fflush (stdout) ;
3535
3636 memset (input_serial, 0, sizeof (input_serial)) ;
@@ -117,9 +117,13 @@ clone_test (int converter) · 80 unmodified lines
117117 int
118118 main (void)
119119 {
120+ puts("");
121+
120122 clone_test (SRC_ZERO_ORDER_HOLD) ;
121123 clone_test (SRC_LINEAR) ;
122124 clone_test (SRC_SINC_FASTEST) ;
123125
126+ puts("");
127+
124128 return 0 ;
125129 } /* main */
tests/nullptr_test.c+9−3
@@ -25,9 +25,9 @@ nullptr_test (int converter) · 24 unmodified lines
2525 SRC_STATE* src_state ;
2626 SRC_DATA src_data, src_data2 ;
2727
28− int error, frame, ch, index ;
28+ int error ;
2929
30− printf (" nullptr_test (%-28s) ....... ", src_get_name (converter)) ;
30+ printf (" nullptr_test (%-28s) ....... ", src_get_name (converter)) ;
3131 fflush (stdout) ;
3232
3333 memset (input, 0, sizeof (input)) ;
@@ -86,12 +86,18 @@ nullptr_test (int converter) · 52 unmodified lines
8686 src_state = src_delete (src_state) ;
8787
8888 puts ("ok") ;
89−} /* clone_test */
89+} /* nullptr_test */
9090
9191 int
9292 main (void)
9393 {
94+ puts("");
95+
9496 nullptr_test (SRC_ZERO_ORDER_HOLD) ;
97+ nullptr_test (SRC_LINEAR) ;
98+ nullptr_test (SRC_SINC_FASTEST) ;
99+
100+ puts("");
95101
96102 return 0 ;
97103 } /* 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