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.8.0~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=00bf01ffbaf2b5a728d856eb8deb3f27a74d6ee2;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 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;