opkg: implment active_list_clear()
[oweals/opkg-lede.git] / tests / opkg_active_list_test.c
index 1e216450fe8d3700359512d8da9308e313f6eaea..77819b09183a99bc30dd4c661cf360b8183a19bf 100644 (file)
@@ -111,7 +111,8 @@ int main (void) {
         test = list_entry(ptr, struct active_test, list);
         printf ("%s ",test->str);
     }
         test = list_entry(ptr, struct active_test, list);
         printf ("%s ",test->str);
     }
-    printf("\npos order: ");
+    printf("\nafter clear: ");
+    active_list_clear(&head);
     for(ptr = active_list_next(&head, NULL); ptr ;ptr = active_list_next(&head, ptr)) {
         test = list_entry(ptr, struct active_test, list);
         printf ("%s ",test->str);
     for(ptr = active_list_next(&head, NULL); ptr ;ptr = active_list_next(&head, ptr)) {
         test = list_entry(ptr, struct active_test, list);
         printf ("%s ",test->str);