From 0582c4df7a6fd5265f76295431c0abf7310a89c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 19 May 2016 01:35:44 -0400 Subject: [PATCH] Tests: inverted condition in test_kernel_data MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- tests/unit/test_kernel_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_kernel_data.c b/tests/unit/test_kernel_data.c index eccb7d848..0bae53ae7 100644 --- a/tests/unit/test_kernel_data.c +++ b/tests/unit/test_kernel_data.c @@ -135,7 +135,7 @@ static void test_create_kernel_event(void) struct lttng_event ev; memset(&ev, 0, sizeof(ev)); - ok(lttng_strncpy(ev.name, get_random_string(), + ok(!lttng_strncpy(ev.name, get_random_string(), LTTNG_KERNEL_SYM_NAME_LEN), "Validate string length"); ev.type = LTTNG_EVENT_TRACEPOINT; -- 2.34.1