X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Flib%2Ftest_ctf_ir_ref.c;h=01434d4c46ea45fdba614165bd7c007511d5270a;hb=8bbe269d7275dfa1331b571bbe1cf8a7036be0c9;hp=856715cb90857b6d1d7d2e579b7ee8fce8104d85;hpb=6038c87e1e44763c177d66317b0330f5a6171dc7;p=babeltrace.git diff --git a/tests/lib/test_ctf_ir_ref.c b/tests/lib/test_ctf_ir_ref.c index 856715cb..01434d4c 100644 --- a/tests/lib/test_ctf_ir_ref.c +++ b/tests/lib/test_ctf_ir_ref.c @@ -27,6 +27,8 @@ #include #include +#define NR_TESTS 41 + struct user { struct bt_ctf_trace *tc; struct bt_ctf_stream_class *sc; @@ -358,6 +360,9 @@ int main(int argc, char **argv) *weak_ec3 = NULL; struct user user_a = { 0 }, user_b = { 0 }, user_c = { 0 }; + /* Initialize tap harness before any tests */ + plan_tests(NR_TESTS); + /* The only reference which exists at this point is on TC1. */ tc1 = create_tc1(); ok(tc1, "Initialize trace"); @@ -367,7 +372,6 @@ int main(int argc, char **argv) init_weak_refs(tc1, &weak_tc1, &weak_sc1, &weak_sc2, &weak_ec1, &weak_ec2, &weak_ec3); - plan_no_plan(); ok(bt_object_get_ref_count(weak_sc1) == 0, "Initial SC1 reference count is 0");