summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-05-04 11:13:56 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-05-04 11:13:56 +0100
commit059bac67c267f8fb6f22a21e3911af8002089bf7 (patch)
tree573c71a4c9453bcbfaf0bcd9dc194f6c195e262f /tools
parent9b42d0b5c83fe4a2da2f5bec7d32beaeee9647ee (diff)
glib-errors-check-gen.py: check that TP_ERROR_STR_foo are right, too
Diffstat (limited to 'tools')
-rw-r--r--tools/glib-errors-check-gen.py4
1 files changed, 4 insertions, 0 deletions
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 '}'