summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6d9b21f)
Change-Id: I83dc2343fe7c457a1ec0c94ed164c1365fce2bdb
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
struct cds_lfs_stack s;
cds_lfs_init(&s);
struct cds_lfs_stack s;
cds_lfs_init(&s);
- if (!cds_lfs_empty(&s))
- fail("cds_lfs_empty");
- else
- ok(1, "cds_lfs_empty");
+ ok(cds_lfs_empty(&s), "cds_lfs_empty");
}
static void test_wfstack(void)
}
static void test_wfstack(void)
struct cds_wfs_stack s;
cds_wfs_init(&s);
struct cds_wfs_stack s;
cds_wfs_init(&s);
- if (!cds_wfs_empty(&s))
- fail("cds_lfs_empty");
- else
- ok(1, "cds_lfs_empty");
+ ok(cds_wfs_empty(&s), "cds_lfs_empty");
}
static void test_wfcqueue(void)
}
static void test_wfcqueue(void)
struct cds_wfcq_tail tail;
cds_wfcq_init(&head, &tail);
struct cds_wfcq_tail tail;
cds_wfcq_init(&head, &tail);
- if (!cds_wfcq_empty(&head, &tail))
- fail("cds_wfcq_empty");
- else
- ok(1, "cds_wfcq_empty");
+ ok(cds_wfcq_empty(&head, &tail), "cds_wfcq_empty");
- /* Need at least 1 test to make a valid TAP test plan. */
test_lfstack();
test_wfstack();
test_lfstack();
test_wfstack();