src: add missing COMMON_CFLAGS to libvirt_viewer_util.la

This ensures that G_LOG_DOMAIN is used in all places, and in turns
highlights a bug in the test suite.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2021-01-11 14:38:59 +00:00
parent 0dab000823
commit 45dd26ece2
2 changed files with 2 additions and 1 deletions

View File

@ -153,6 +153,7 @@ libvirt_viewer_util_la_LIBADD = \
libvirt_viewer_util_la_CFLAGS = \
-DLOCALE_DIR=\""$(datadir)/locale"\" \
$(COMMON_CFLAGS) \
$(GLIB2_CFLAGS) \
$(GTK_CFLAGS) \
$(LIBXML2_CFLAGS) \

View File

@ -65,7 +65,7 @@ test_monitor_align(MonitorAlignFunc monitor_align, const TestCase *test_cases, c
g_hash_table_insert(displays, GUINT_TO_POINTER(j), displays_in[j]);
}
for (j = 0; j < G_N_ELEMENTS(test_cases[i].messages) && test_cases[i].messages[j]; j++) {
g_test_expect_message(NULL, test_cases[i].log_level, test_cases[i].messages[j]);
g_test_expect_message(G_LOG_DOMAIN, test_cases[i].log_level, test_cases[i].messages[j]);
}
monitor_align(displays);
g_test_assert_expected_messages();