Reduce the number of Makefiles in 'doc/'
[babeltrace.git] / tests / plugins / flt.lttng-utils.debug-info / test_bin_info.c
index 90698d805e449a091770964de3790f9706136ca4..a398faeb21f5c71f9588872cc5234771cdbf2f15 100644 (file)
@@ -1,24 +1,11 @@
 /*
- * test_bin_info.c
+ * SPDX-License-Identifier: GPL-2.0-only
  *
- * Babeltrace SO info tests
- *
- * Copyright (c) 2015 EfficiOS Inc. and Linux Foundation
- * Copyright (c) 2015 Antoine Busque <abusque@efficios.com>
- * Copyright (c) 2019 Michael Jeanson <mjeanson@efficios.com>
- *
- * 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
- * the Free Software Foundation; under version 2 of the License.
+ * Copyright (C) 2015 EfficiOS Inc. and Linux Foundation
+ * Copyright (C) 2015 Antoine Busque <abusque@efficios.com>
+ * Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com>
  *
- * 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.
+ * Babeltrace SO info tests
  */
 
 #define BT_LOG_OUTPUT_LEVEL BT_LOG_WARNING
@@ -417,6 +404,8 @@ int main(int argc, char **argv)
        GOptionContext *context;
        int status;
 
+       plan_tests(NR_TESTS);
+
        context = g_option_context_new("- bin info test");
        g_option_context_add_main_entries(context, entries, NULL);
        if (!g_option_context_parse(context, &argc, &argv, &error)) {
@@ -438,8 +427,6 @@ int main(int argc, char **argv)
                goto end;
        }
 
-       plan_tests(NR_TESTS);
-
        ret = bin_info_init(BT_LOG_OUTPUT_LEVEL, NULL);
        ok(ret == 0, "bin_info_init successful");
 
@@ -448,7 +435,7 @@ int main(int argc, char **argv)
        test_bin_info_build_id(opt_debug_info_dir);
        test_bin_info_debug_link(opt_debug_info_dir);
 
-       status = EXIT_SUCCESS;
+       status = exit_status();
 
 end:
        g_option_context_free(context);
This page took 0.022988 seconds and 4 git commands to generate.