From 00bf01ffbaf2b5a728d856eb8deb3f27a74d6ee2 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 fde46f76f..5bca684a5 100644 --- a/tests/unit/test_kernel_data.c +++ b/tests/unit/test_kernel_data.c @@ -134,7 +134,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