Remove unused `tests/plugins/test_utils_muxer_complete.in`
[babeltrace.git] / tests / plugins / test_bin_info.c
index 2f9a09a0b278a68938a67d44f159f1433ae15835..d681ef5621abc948c00b6d6266fda030a7c9e4e2 100644 (file)
@@ -27,8 +27,8 @@
 #include <inttypes.h>
 #include <glib.h>
 
-#include <babeltrace/babeltrace-internal.h>
-#include <babeltrace/assert-internal.h>
+#include "common/macros.h"
+#include "common/assert.h"
 #include <lttng-utils/debug-info/bin-info.h>
 
 #include "tap/tap.h"
@@ -224,7 +224,10 @@ void test_bin_info_build_id(const char *bin_info_dir)
        }
 
        ret = bt_fd_cache_init(&fdc);
-       BT_ASSERT(ret == 0);
+       if (ret != 0) {
+               diag("Failed to initialize FD cache");
+               exit(EXIT_FAILURE);
+       }
 
        bin = bin_info_create(&fdc, bin_path, SO_LOW_ADDR, SO_MEMSZ, true,
                              data_dir, NULL);
@@ -275,7 +278,10 @@ void test_bin_info_debug_link(const char *bin_info_dir)
        }
 
        ret = bt_fd_cache_init(&fdc);
-       BT_ASSERT(ret == 0);
+       if (ret != 0) {
+               diag("Failed to initialize FD cache");
+               exit(EXIT_FAILURE);
+       }
 
        bin = bin_info_create(&fdc, bin_path, SO_LOW_ADDR, SO_MEMSZ, true,
                              data_dir, NULL);
@@ -322,7 +328,10 @@ void test_bin_info_elf(const char *bin_info_dir)
        }
 
        ret = bt_fd_cache_init(&fdc);
-       BT_ASSERT(ret == 0);
+       if (ret != 0) {
+               diag("Failed to initialize FD cache");
+               exit(EXIT_FAILURE);
+       }
 
        bin = bin_info_create(&fdc, bin_path, SO_LOW_ADDR, SO_MEMSZ, true,
                              data_dir, NULL);
@@ -367,7 +376,10 @@ void test_bin_info_bundled(const char *bin_info_dir)
        }
 
        ret = bt_fd_cache_init(&fdc);
-       BT_ASSERT(ret == 0);
+       if (ret != 0) {
+               diag("Failed to initialize FD cache");
+               exit(EXIT_FAILURE);
+       }
 
        bin = bin_info_create(&fdc, bin_path, SO_LOW_ADDR, SO_MEMSZ, true,
                              data_dir, NULL);
This page took 0.023335 seconds and 4 git commands to generate.