mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 01:49:35 +00:00
26 lines
422 B
C
26 lines
422 B
C
#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);
|
|
}
|
|
|