diff --git a/lib/fail_test.c b/lib/fail_test.c new file mode 100644 index 00000000..76792d59 --- /dev/null +++ b/lib/fail_test.c @@ -0,0 +1,22 @@ +#include "test/birdtest.h" + +void +just_bug_fce(void) +{ + bug("bug message"); +} + +static int +t_check_bug(void) +{ + return bt_assert_bug(just_bug_fce, "bug message"); +} + +int +main(int argc, char *argv[]) +{ + bt_init(argc, argv); + bt_test_suite(t_check_bug, "bug fce"); + + return bt_exit_value(); +}