tests: test removing a destruction listener from a destruction listener
[babeltrace.git] / src / common / assert.c
index 056e2f261a7cb81b3a0361cf7d28d0648ef9f831..99080f7ba208f21f2299563a3019d25e578114f3 100644 (file)
@@ -20,6 +20,8 @@
  * SOFTWARE.
  */
 
+#include <stdio.h>
+
 #include "common/assert.h"
 #include "common/common.h"
 
@@ -28,14 +30,14 @@ void bt_common_assert_failed(const char *file, int line, const char *func,
 {
        fprintf(stderr,
                "%s\n%s%s%s (╯°□°)╯︵ ┻━┻ %s %s%s%s%s:%s%d%s: %s%s()%s: "
-               "%sAssertion %s`%s`%s%s failed.%s\n",
+               "%sAssertion %s%s`%s`%s%s failed.%s\n",
                bt_common_color_reset(),
                bt_common_color_bold(),
                bt_common_color_bg_yellow(),
-               bt_common_color_fg_red(),
+               bt_common_color_fg_bright_red(),
                bt_common_color_reset(),
                bt_common_color_bold(),
-               bt_common_color_fg_magenta(),
+               bt_common_color_fg_bright_magenta(),
                file,
                bt_common_color_reset(),
                bt_common_color_fg_green(),
@@ -46,9 +48,10 @@ void bt_common_assert_failed(const char *file, int line, const char *func,
                bt_common_color_reset(),
                bt_common_color_fg_red(),
                bt_common_color_bold(),
+               bt_common_color_fg_bright_red(),
                assertion,
                bt_common_color_reset(),
                bt_common_color_fg_red(),
                bt_common_color_reset());
-       abort();
+       bt_common_abort();
 }
This page took 0.027451 seconds and 4 git commands to generate.