The C TAP library provides the 'exit_status()' function that will return
the proper exit code according to the number of tests that succeeded or
failed.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ia76ed7d1510bb23bf3848f85ac9022c66e752311
g_free(trace_path);
g_free(metadata_path);
g_free(trace_path);
g_free(metadata_path);
test_is_equal();
test_copy();
test_extend();
test_is_equal();
test_copy();
test_extend();
GOptionContext *context;
int status;
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)) {
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)) {
- plan_tests(NR_TESTS);
-
ret = bin_info_init(BT_LOG_OUTPUT_LEVEL, NULL);
ok(ret == 0, "bin_info_init successful");
ret = bin_info_init(BT_LOG_OUTPUT_LEVEL, NULL);
ok(ret == 0, "bin_info_init successful");
test_bin_info_build_id(opt_debug_info_dir);
test_bin_info_debug_link(opt_debug_info_dir);
test_bin_info_build_id(opt_debug_info_dir);
test_bin_info_debug_link(opt_debug_info_dir);
+ status = exit_status();
end:
g_option_context_free(context);
end:
g_option_context_free(context);
test_bt_no_dwarf(data_dir);
test_bt_dwarf(data_dir);
test_bt_no_dwarf(data_dir);
test_bt_dwarf(data_dir);