aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/test-array-queue.c
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-03-08 17:18:22 -0900
committerDavid M. Syzdek <david@syzdek.net>2022-03-08 17:18:22 -0900
commitcc98d826f549fb77b9f4a90afdea726cf15a39f3 (patch)
treeec8f7f4f73d2ea1b08b7a900a1056cfe18e0ad98 /tests/test-array-queue.c
parent71b870295da0a73e1962a18f6ce1f8d2805f1542 (diff)
downloadtinyrad-cc98d826f549fb77b9f4a90afdea726cf15a39f3.tar.gz
tinyrad-cc98d826f549fb77b9f4a90afdea726cf15a39f3.tar.bz2
tinyrad-cc98d826f549fb77b9f4a90afdea726cf15a39f3.tar.xz
tinyrad-cc98d826f549fb77b9f4a90afdea726cf15a39f3.zip
tests: replacing our_verbose() with trutils_verbose()
Diffstat (limited to 'tests/test-array-queue.c')
-rw-r--r--tests/test-array-queue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-array-queue.c b/tests/test-array-queue.c
index 98547bc..e5b979f 100644
--- a/tests/test-array-queue.c
+++ b/tests/test-array-queue.c
@@ -210,7 +210,7 @@ int main( int argc, char * argv[] )
210 210
211 211
212 // initialize test data 212 // initialize test data
213 our_verbose(opts, "initializing test data ..."); 213 trutils_verbose(opts, "initializing test data ...");
214 memset(data, 0, sizeof(data)); 214 memset(data, 0, sizeof(data));
215 for(len = 0; ((test_strs[len])); len++); 215 for(len = 0; ((test_strs[len])); len++);
216 for(pos = 0; (pos < MY_LIST_LEN); pos++) 216 for(pos = 0; (pos < MY_LIST_LEN); pos++)
@@ -233,7 +233,7 @@ int main( int argc, char * argv[] )
233 233
234 234
235 // loop through test data and add to queue 235 // loop through test data and add to queue
236 our_verbose(opts, "queueing to queue ..."); 236 trutils_verbose(opts, "queueing to queue ...");
237 list = NULL; 237 list = NULL;
238 list_len = 0; 238 list_len = 0;
239 for(x = 0; (x < MY_LIST_LEN); x++) 239 for(x = 0; (x < MY_LIST_LEN); x++)
@@ -254,7 +254,7 @@ int main( int argc, char * argv[] )
254 254
255 255
256 // loop through queue and verify data 256 // loop through queue and verify data
257 our_verbose(opts, "verifing queue ..."); 257 trutils_verbose(opts, "verifing queue ...");
258 if (list_len != ((MY_LIST_LEN / 4) * 3)) 258 if (list_len != ((MY_LIST_LEN / 4) * 3))
259 return(our_error(opts, NULL, "queue length is incorrect")); 259 return(our_error(opts, NULL, "queue length is incorrect"));
260 delta = MY_LIST_LEN - list_len; 260 delta = MY_LIST_LEN - list_len;
@@ -266,7 +266,7 @@ int main( int argc, char * argv[] )
266 266
267 267
268 // dequeue data from queue 268 // dequeue data from queue
269 our_verbose(opts, "dequeueing from queue ..."); 269 trutils_verbose(opts, "dequeueing from queue ...");
270 while (list_len > 0) 270 while (list_len > 0)
271 if (tinyrad_array_dequeue(list, &list_len, sizeof(MyData *)) == NULL) 271 if (tinyrad_array_dequeue(list, &list_len, sizeof(MyData *)) == NULL)
272 return(our_error(opts, NULL, "unable to dequeue from queue")); 272 return(our_error(opts, NULL, "unable to dequeue from queue"));