From 94e5f18e80aeb95b14217ed7f7efa790eb48c3c9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 28 Aug 2021 10:23:52 -0400 Subject: tests: Only print known analysis flags We're going to steal one bit for private purposes. --- tests/test-layout.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/test-layout.c') diff --git a/tests/test-layout.c b/tests/test-layout.c index f142228b..0139c138 100644 --- a/tests/test-layout.c +++ b/tests/test-layout.c @@ -127,6 +127,10 @@ dump_lines (PangoLayout *layout, GString *string) pango_layout_iter_free (iter); } +#define ANALYSIS_FLAGS (PANGO_ANALYSIS_FLAG_CENTERED_BASELINE | \ + PANGO_ANALYSIS_FLAG_IS_ELLIPSIS | \ + PANGO_ANALYSIS_FLAG_NEED_HYPHEN) + static void dump_runs (PangoLayout *layout, GString *string) { @@ -160,7 +164,7 @@ dump_runs (PangoLayout *layout, GString *string) g_string_append_printf (string, "i=%d, index=%d, chars=%d, level=%d, gravity=%s, flags=%d, font=%s, script=%s, language=%s, '%s'\n", i, index, item->num_chars, item->analysis.level, gravity_name (item->analysis.gravity), - item->analysis.flags, + item->analysis.flags & ANALYSIS_FLAGS, opt_show_font ? font : "OMITTED", /* for some reason, this fails on build.gnome.org, so leave it out */ script_name (item->analysis.script), pango_language_to_string (item->analysis.language), -- cgit v1.2.1