From 27111c01ce59b69ea087f480ba51037242bd9aeb 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 b578740bf..dd44e5c13 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