summaryrefslogtreecommitdiffstats
path: root/tests/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.c')
-rw-r--r--tests/tests.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/tests.c b/tests/tests.c
index a32d32e9..8ec4a40f 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -26,8 +26,9 @@
#include <config.h>
#include <check.h>
+#include <glib.h>
#include "../lasso/lasso.h"
-#include "lasso_config.h"
+#include "../lasso/lasso_config.h"
extern Suite* basic_suite();
extern Suite* login_suite();
@@ -55,6 +56,12 @@ SuiteFunction suites[] = {
#endif
NULL
};
+void error_logger(const gchar *log_domain, GLogLevelFlags log_level,
+ const gchar *message, G_GNUC_UNUSED gpointer user_data)
+{
+ fail("No logging output expected: message «%s» was emitted for domain «%s» at the level"
+ " «%d»", message, log_domain, log_level);
+}
int
main(int argc, char *argv[])
@@ -71,6 +78,7 @@ main(int argc, char *argv[])
}
lasso_init();
+ g_log_set_default_handler(error_logger, NULL);
sr = srunner_create(suites[0]());