Add bt_connection_is_ended()
[babeltrace.git] / tests / lib / test_bt_notification_iterator.c
index 99664498b3df718a607c7ff3feb779042ba027d0..6ba999526c2071ed759d34b62dad75f121caf62b 100644 (file)
@@ -18,6 +18,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
+#include <stdbool.h>
 #include <inttypes.h>
 #include <string.h>
 #include <assert.h>
@@ -408,9 +409,6 @@ void init_static_data(void)
        assert(empty_struct_ft);
        trace = bt_ctf_trace_create();
        assert(trace);
-       ret = bt_ctf_trace_set_native_byte_order(trace,
-               BT_CTF_BYTE_ORDER_LITTLE_ENDIAN);
-       assert(ret == 0);
        ret = bt_ctf_trace_set_packet_header_type(trace, empty_struct_ft);
        assert(ret == 0);
        src_empty_cc_prio_map = bt_clock_class_priority_map_create();
@@ -547,7 +545,7 @@ enum bt_notification_iterator_status src_iter_init(
                user_data->seq = seq_multiple_auto_packet_end_stream_end_from_end;
                break;
        default:
-               assert(false);
+               abort();
        }
 
        return BT_NOTIFICATION_ITERATOR_STATUS_OK;
@@ -661,7 +659,7 @@ struct bt_notification_iterator_next_return src_iter_next_seq(
                event_packet = src_stream2_packet2;
                break;
        default:
-               assert(false);
+               abort();
        }
 
        if (event_packet) {
@@ -744,7 +742,7 @@ enum bt_component_status sink_consume(
                BT_PUT(user_data->notif_iter);
                goto end;
        case BT_NOTIFICATION_ITERATOR_STATUS_AGAIN:
-               assert(false);
+               abort();
        default:
                break;
        }
This page took 0.025916 seconds and 4 git commands to generate.