Пример #1
0
/**
   \details print the test title
   
   \param mt pointer to the top-level mapitest structure
   \param str the test title
 */
_PUBLIC_ void mapitest_print_test_title_start(struct mapitest *mt, const char *str)
{
	char		*title = NULL;

	if (!str) return;

#ifdef HAVE_SUBUNIT
	if (mt->subunit_output) {
		subunit_test_start(str);
		return;
	}
#endif
	title = talloc_asprintf(mt->mem_ctx, MODULE_TEST_TITLE, str);
	mapitest_print(mt, "%s", title);
	mapitest_print_tab(mt);
	mapitest_print_line(mt, MODULE_TEST_LINELEN, MODULE_TEST_DELIM);
	mapitest_indent();
	talloc_free(title);
}
Пример #2
0
static void
call_test_start(void)
{
    subunit_test_start("test case");
}