summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-02-03 11:13:53 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-02-07 04:29:14 -0500
commite9887d2a856a963c93ddbfdf1f8d40910555b78b (patch)
treeb931a9839653672d62e3ac172ef7f292b13a9988
parentb714353e38cf72b6cb2754d413b3688a47624028 (diff)
downloadgobject-introspection-e9887d2a856a963c93ddbfdf1f8d40910555b78b.tar.gz
warningtester: Sort the list of warnings
This means that we can simply put all warnings at the bottom, unrelated to the order that they're emitted in the code, keeping line numbers more stable. https://bugzilla.gnome.org/show_bug.cgi?id=693098
-rw-r--r--tests/warn/warningtester.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py
index ee6b3c16..27e0a5e6 100644
--- a/tests/warn/warningtester.py
+++ b/tests/warn/warningtester.py
@@ -128,6 +128,9 @@ def check(args):
expected_warnings = _extract_expected(filename)
+ expected_warnings.sort()
+ emitted_warnings.sort()
+
if len(expected_warnings) != len(emitted_warnings):
raise SystemExit('ERROR in %r: %d warnings were emitted, '
'expected %d:\n%s' %(os.path.basename(filename),