From: Jérémie Galarneau Date: Thu, 19 May 2016 05:35:44 +0000 (-0400) Subject: Tests: inverted condition in test_kernel_data X-Git-Tag: v2.6.3~15 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=27111c01ce59b69ea087f480ba51037242bd9aeb;p=lttng-tools.git Tests: inverted condition in test_kernel_data Signed-off-by: Jérémie Galarneau --- 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;