Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Iaf7655c8a8e76d004910da14343bbebc4309576e
ok(1, "cds_wfcq_empty");
}
+static
+void test_build_cds_list_head_init(void)
+{
+ /* Test that the CDS_LIST_HEAD_INIT macro builds correctly. */
+ struct struct_with_list {
+ struct cds_list_head head;
+ };
+
+ struct struct_with_list list = {
+ .head = CDS_LIST_HEAD_INIT(list.head),
+ };
+}
+
int main(void)
{
/* Need at least 1 test to make a valid TAP test plan. */
test_lfstack();
test_wfstack();
test_wfcqueue();
+ test_build_cds_list_head_init();
return exit_status();
}