Added silc_list_pop
[runtime.git] / lib / silcutil / tests / test_silclist.c
index 9efff72a047f6574d1ea50e2a3014456e2e77aec..70c1cb0eb167fc98b756c51cfb65f02f2f55cf58 100644 (file)
@@ -155,6 +155,13 @@ int main(int argc, char **argv)
                   f->prev));
   }
 
+  while ((f = silc_list_pop(list)) != SILC_LIST_END) {
+    SILC_LOG_DEBUG(("POPPED entry %d, %p, next=%p, prev=%p", f->i, f, f->next,
+                  f->prev));
+  }
+  if (silc_list_count(list))
+    goto err;
+
   success = TRUE;
 
  err: