From: Simon Marchi Date: Mon, 25 Nov 2019 21:12:21 +0000 (-0500) Subject: tests: make functions static in test_session.c X-Git-Tag: v2.12.0-rc1~182 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c109c263a5bf6c52d3a1cf27e26a784fb28fac07;p=lttng-tools.git tests: make functions static in test_session.c Fixes: CC test_session.o /home/smarchi/src/lttng-tools/tests/unit/test_session.c:219:6: error: no previous declaration for ‘test_session_list’ [-Werror=missing-declarations] void test_session_list(void) ^~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_session.c:225:6: error: no previous declaration for ‘test_create_one_session’ [-Werror=missing-declarations] void test_create_one_session(void) ^~~~~~~~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_session.c:232:6: error: no previous declaration for ‘test_validate_session’ [-Werror=missing-declarations] void test_validate_session(void) ^~~~~~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_session.c:258:6: error: no previous declaration for ‘test_destroy_session’ [-Werror=missing-declarations] void test_destroy_session(void) ^~~~~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_session.c:278:6: error: no previous declaration for ‘test_duplicate_session’ [-Werror=missing-declarations] void test_duplicate_session(void) ^~~~~~~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_session.c:284:6: error: no previous declaration for ‘test_session_name_generation’ [-Werror=missing-declarations] void test_session_name_generation(void) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/smarchi/src/lttng-tools/tests/unit/test_session.c:309:6: error: no previous declaration for ‘test_large_session_number’ [-Werror=missing-declarations] void test_large_session_number(void) ^~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: Ib1f6a004e6feb4693c4331a8b0ce67ee1697703c Signed-off-by: Jérémie Galarneau --- diff --git a/tests/unit/test_session.c b/tests/unit/test_session.c index d01117809..4e659d524 100644 --- a/tests/unit/test_session.c +++ b/tests/unit/test_session.c @@ -216,20 +216,20 @@ end: return ret; } -void test_session_list(void) +static void test_session_list(void) { session_list = session_get_list(); ok(session_list != NULL, "Session list: not NULL"); } -void test_create_one_session(void) +static void test_create_one_session(void) { ok(create_one_session(SESSION1) == 0, "Create session: %s", SESSION1); } -void test_validate_session(void) +static void test_validate_session(void) { struct ltt_session *tmp; @@ -255,7 +255,7 @@ end: session_unlock_list(); } -void test_destroy_session(void) +static void test_destroy_session(void) { struct ltt_session *tmp; @@ -275,13 +275,13 @@ void test_destroy_session(void) session_unlock_list(); } -void test_duplicate_session(void) +static void test_duplicate_session(void) { ok(two_session_same_name() == 0, "Duplicate session creation"); } -void test_session_name_generation(void) +static void test_session_name_generation(void) { struct ltt_session *session = NULL; enum lttng_error_code ret_code; @@ -306,7 +306,7 @@ end: session_unlock_list(); } -void test_large_session_number(void) +static void test_large_session_number(void) { int ret, i, failed = 0; struct ltt_session *iter, *tmp;