diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-03-02 19:04:49 +0000 |
---|---|---|
committer | <> | 2015-05-08 15:30:59 +0000 |
commit | f800382616186a5d30e28d8b2c51e97a9a8360f2 (patch) | |
tree | 0d5270190548a37223d14b54383ce8a3d3af5302 /tests/unit_test_sample.c | |
download | isc-dhcp-tarball-master.tar.gz |
Imported from /home/lorry/working-area/delta_isc-dhcp-tarball/dhcp-4.2.8.tar.gz.HEADdhcp-4.2.8master
Diffstat (limited to 'tests/unit_test_sample.c')
-rw-r--r-- | tests/unit_test_sample.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/unit_test_sample.c b/tests/unit_test_sample.c new file mode 100644 index 0000000..86d6336 --- /dev/null +++ b/tests/unit_test_sample.c @@ -0,0 +1,25 @@ +#include "config.h" +#include "t_api.h" + +static void foo(void); + +/* + * T_testlist is a list of tests that are invoked. + */ +testspec_t T_testlist[] = { + { foo, "sample test" }, + { NULL, NULL } +}; + +static void +foo(void) { + static const char *test_desc = + "this is an example test, for no actual module"; + + t_assert("sample", 1, T_REQUIRED, test_desc); + + /* ... */ /* Test code would go here. */ + + t_result(T_PASS); +} + |