From e72e86b2fffafd92c24cdf7d112c2b10ccc9768b Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 15 Jun 2017 16:32:38 -0400 Subject: [PATCH] test_ctf_writer.c: do not check for invalid event class name MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit All event class names are valid. This is an old limitation. Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- tests/lib/test_ctf_writer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index a7a55b94..9eed82f4 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -61,7 +61,7 @@ #define DEFAULT_CLOCK_TIME 0 #define DEFAULT_CLOCK_VALUE 0 -#define NR_TESTS 634 +#define NR_TESTS 633 static int64_t current_time = 42; @@ -783,8 +783,6 @@ void append_complex_event(struct bt_ctf_stream_class *stream_class, inner_structure_type, "inner_structure"), "Add inner_structure field to complex structure"); - ok(bt_ctf_event_class_create("clock") == NULL, - "Reject creation of an event class with an illegal name"); event_class = bt_ctf_event_class_create(complex_test_event_string); ok(event_class, "Create an event class"); ok(bt_ctf_event_class_add_field(event_class, uint_35_type, ""), -- 2.34.1