etc/protocols - sync with NetBSD-8
[minix.git] / external / bsd / dhcp / dist / tests / unit_test_sample.c
blob9e7c208e5dcb2f70147adccd0273d0ea16508148
1 /* $NetBSD: unit_test_sample.c,v 1.1.1.2 2014/07/12 11:58:01 spz Exp $ */
2 #include "config.h"
3 #include "t_api.h"
5 static void foo(void);
7 /*
8 * T_testlist is a list of tests that are invoked.
9 */
10 testspec_t T_testlist[] = {
11 { foo, "sample test" },
12 { NULL, NULL }
15 static void
16 foo(void) {
17 static const char *test_desc =
18 "this is an example test, for no actual module";
20 t_assert("sample", 1, T_REQUIRED, test_desc);
22 /* ... */ /* Test code would go here. */
24 t_result(T_PASS);