projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: Fix test plans and do not skip on fail
[babeltrace.git]
/
tests
/
lib
/
test_ctf_ir_ref.c
diff --git
a/tests/lib/test_ctf_ir_ref.c
b/tests/lib/test_ctf_ir_ref.c
index 856715cb90857b6d1d7d2e579b7ee8fce8104d85..01434d4c46ea45fdba614165bd7c007511d5270a 100644
(file)
--- a/
tests/lib/test_ctf_ir_ref.c
+++ b/
tests/lib/test_ctf_ir_ref.c
@@
-27,6
+27,8
@@
#include <babeltrace/object-internal.h>
#include <assert.h>
#include <babeltrace/object-internal.h>
#include <assert.h>
+#define NR_TESTS 41
+
struct user {
struct bt_ctf_trace *tc;
struct bt_ctf_stream_class *sc;
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 };
*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");
/* 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);
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");
ok(bt_object_get_ref_count(weak_sc1) == 0,
"Initial SC1 reference count is 0");
This page took
0.039706 seconds
and
4
git commands to generate.