diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-03 11:13:53 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-02-07 04:29:14 -0500 |
commit | e9887d2a856a963c93ddbfdf1f8d40910555b78b (patch) | |
tree | b931a9839653672d62e3ac172ef7f292b13a9988 | |
parent | b714353e38cf72b6cb2754d413b3688a47624028 (diff) | |
download | gobject-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.py | 3 |
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), |