summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-14 18:49:15 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-14 18:51:06 -0300
commit92042d80364697446e3710ace897662de3e222f9 (patch)
tree09f57df57961f8a1fc75fb60bfddac5b32c95a65
parent096d36ff0fa03b7e5e70c9c63935d91bac4dce49 (diff)
[warningtester] Do not sort expected warnings
Instead just take them in the order they are in the file
-rw-r--r--tests/warn/callback-invalid-scope.h2
-rw-r--r--tests/warn/warningtester.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/warn/callback-invalid-scope.h b/tests/warn/callback-invalid-scope.h
index c42a49a..42f1dc3 100644
--- a/tests/warn/callback-invalid-scope.h
+++ b/tests/warn/callback-invalid-scope.h
@@ -7,5 +7,5 @@
*/
void test_callback_invalid(GCallback *callback, gpointer user_data);
-// EXPECT:8: Warning: Test: test_callback_invalid: argument callback: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async)
// EXPECT:8: Warning: Test: Invalid scope 'invalid' for parameter 'callback'
+// EXPECT:8: Warning: Test: test_callback_invalid: argument callback: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async)
diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py
index c856a78..f30e3e0 100644
--- a/tests/warn/warningtester.py
+++ b/tests/warn/warningtester.py
@@ -59,7 +59,7 @@ def _extract_expected(filename):
except ValueError:
pass
retval.append((sort_key, line[10:]))
- return sorted(retval)
+ return retval
def check(args):
filename = args[0]