#include "test-tool.h" #include "t/unit-tests/test-lib.h" /* * The purpose of this "unit test" is to verify a few invariants of the unit * test framework itself, as well as to provide examples of output from actually * failing tests. As such, it is intended that this test fails, and thus it * should not be run as part of `make unit-tests`. Instead, we verify it behaves * as expected in the integration test t0080-unit-test-output.sh */ /* Used to store the return value of check_int(). */ static int check_res; /* Used to store the return value of TEST(). */ static int test_res; static void t_res(int expect) { … } static void t_todo(int x) { … } static void t_skip(void) { … } static int do_skip(void) { … } static void t_skip_todo(void) { … } static void t_todo_after_fail(void) { … } static void t_fail_after_todo(void) { … } static void t_messages(void) { … } static void t_empty(void) { … } int cmd__example_tap(int argc UNUSED, const char **argv UNUSED) { … }