void test_001(Fixture *fixture, gconstpointer data) { g_string_append(fixture->file, "/dom-configurator-001.xml"); GError *error = NULL; g_assert(log4g_dom_configurator_configure(fixture->file->str, &error)); log4g_debug("debug message (match this string)"); Log4gLogger *logger = log4g_get_logger("org.gnome.test"); g_assert(logger); log4g_logger_warn(logger, "warning message (match this string)"); }
void test_001(Fixture *fixture, G_GNUC_UNUSED gconstpointer data) { GError *error = NULL; gboolean ok; ok = log4g_dom_configurator_configure(fixture->file->str, &error); if (! ok) { g_warning("log4g_dom_configurator_configure(): %s", error->message); g_error_free(error); g_assert(ok); } log4g_debug("debug message (match this string)"); Log4gLogger *logger = log4g_get_logger("org.gnome.test"); g_assert(logger); log4g_logger_warn(logger, "warning message (match this string)"); }