X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_relayd_backward_compat_group_by_session.c;h=c5c9f1b9890e64fd6f13692c177cddf0db64a4d1;hp=733a39a6819289b24dd783c5c92e8cbff27a569e;hb=4942c25609805b81dc67ea4447eac7f9cddac655;hpb=73e9abbe73eebb1cff3ef1267394f919306e5927 diff --git a/tests/unit/test_relayd_backward_compat_group_by_session.c b/tests/unit/test_relayd_backward_compat_group_by_session.c index 733a39a68..c5c9f1b98 100644 --- a/tests/unit/test_relayd_backward_compat_group_by_session.c +++ b/tests/unit/test_relayd_backward_compat_group_by_session.c @@ -1,19 +1,8 @@ /* - * Copyright (c) - 2019 Jonathan Rajotte-Julien - * + * Copyright (C) 2019 Jonathan Rajotte * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by as - * published by the Free Software Foundation; only version 2 of the License. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -126,11 +115,12 @@ static char *craft_expected(struct test *test) int main(int argc, char **argv) { + int i; int num_test = sizeof(tests) / sizeof(struct test); plan_tests(NUM_TESTS_PER_TEST * num_test); diag("Backward compatibility utils for lttng-relayd --group-by-session"); - for (int i = 0; i < num_test; i++) { + for (i = 0; i < num_test; i++) { char *expected = NULL; char *result = NULL;