| PolicyKit Library Reference Manual | ||||
|---|---|---|---|---|
KitTest;
kit_bool_t kit_test_run (KitTest **tests,
size_t num_tests);
typedef struct {
const char *name;
void (*setup) (void);
void (*teardown) (void);
kit_bool_t (*run) (void);
} KitTest;
Test suite abstraction. See kit_test_run() for details.
const char * |
name of the unit test |
|
setup function |
|
teardown function |
|
actual test function. |
kit_bool_t kit_test_run (KitTest **tests, size_t num_tests);
Runs a number of tests simulating Out Of Memory. Checks for both memory and file descriptor leaks.
This function is only available if libkit have been built with KIT_BUILD_TESTS.
|
array of KitTest objects |
|
size of tests array
|
Returns : |
TRUE only if all tests succeed without memory or file descriptor leaks
|