From 059bac67c267f8fb6f22a21e3911af8002089bf7 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 4 May 2010 11:13:56 +0100 Subject: glib-errors-check-gen.py: check that TP_ERROR_STR_foo are right, too --- tools/glib-errors-check-gen.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/glib-errors-check-gen.py b/tools/glib-errors-check-gen.py index d8cee372b..06d57fdce 100644 --- a/tools/glib-errors-check-gen.py +++ b/tools/glib-errors-check-gen.py @@ -25,6 +25,8 @@ class Generator(object): nick = error.getAttribute('name').replace(' ', '') enum = ('TP_ERROR_' + error.getAttribute('name').replace(' ', '_').replace('.', '_').upper()) + s = ('TP_ERROR_STR_' + + error.getAttribute('name').replace(' ', '_').replace('.', '_').upper()) print '' print ' /* %s.%s */' % (ns, nick) @@ -46,6 +48,8 @@ class Generator(object): % nick) print (' g_assert_cmpstr (value_by_nick->value_nick, ==, "%s");' % nick) + print (' g_assert_cmpstr (%s, ==, TP_ERROR_PREFIX "%s");' + % (s, nick)) print '}' -- cgit v1.2.3