Re-enable the bin-info and dward tests
[babeltrace.git] / tests / lib / test_bt_notification_heap.c
index c200c6357fd8003a654b9ed06f9723e8bfed2576..d4767b1b93f5e7b0401777079756373480e615c0 100644 (file)
  */
 
 #include "tap/tap.h"
-#include <stdbool.h>
 #include <stdlib.h>
-#include <babeltrace/compiler.h>
+#include <babeltrace/compiler-internal.h>
 #include <babeltrace/ref.h>
-#include <babeltrace/plugin/notification/heap.h>
-#include <babeltrace/plugin/notification/notification.h>
-#include <babeltrace/plugin/notification/notification-internal.h>
+#include <babeltrace/graph/notification-heap.h>
+#include <babeltrace/graph/notification.h>
+#include <babeltrace/graph/notification-internal.h>
 
 #define NR_TESTS 7
 
@@ -71,7 +70,8 @@ error:
 }
 
 static
-bool compare_notifications(struct bt_notification *a, struct bt_notification *b)
+bt_bool compare_notifications(struct bt_notification *a, struct bt_notification *b,
+               void *unused)
 {
        uint64_t val_a = ((struct dummy_notification *) a)->value;
        uint64_t val_b = ((struct dummy_notification *) b)->value;
@@ -91,7 +91,7 @@ int main(int argc, char **argv)
 
        /* Initialize tap harness before any tests */
        plan_tests(NR_TESTS);
-       heap = bt_notification_heap_create(compare_notifications);
+       heap = bt_notification_heap_create(compare_notifications, NULL);
        ok(heap, "Created a notification heap");
 
        /* Insert 10 000 notifications with random values. */
This page took 0.024652 seconds and 4 git commands to generate.