tests: specify G_LOG_DOMAIN
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 21 Aug 2019 07:47:41 +0000 (09:47 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 21 Aug 2019 07:47:41 +0000 (09:47 +0200)
We're using GLib for tests so let's specify a log domain for the
test-suit code.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
tests/Makefile.am

index 6e6d823e54386a6f6bac7783a91e9541f3ddd9aa..eb6f41ea088c1783976485f7cf0f0c9f57d2fec7 100644 (file)
@@ -11,6 +11,7 @@ SUBDIRS = mockup
 AM_CFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/tests/mockup/
 AM_CFLAGS += -include $(top_builddir)/config.h
 AM_CFLAGS += -Wall -Wextra -g $(GLIB_CFLAGS)
+AM_CFLAGS += -DG_LOG_DOMAIN=\"gpiod-test\"
 AM_LDFLAGS = -pthread
 LDADD = $(top_builddir)/lib/libgpiod.la
 LDADD += $(top_builddir)/tests/mockup/libgpiomockup.la