[gobject-introspection] [warningtester] Do not sort expected warnings
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] [warningtester] Do not sort expected warnings
- Date: Tue, 14 Sep 2010 21:51:21 +0000 (UTC)
commit 92042d80364697446e3710ace897662de3e222f9
Author: Johan Dahlin <johan gnome org>
Date: Tue Sep 14 18:49:15 2010 -0300
[warningtester] Do not sort expected warnings
Instead just take them in the order they are in the file
tests/warn/callback-invalid-scope.h | 2 +-
tests/warn/warningtester.py | 2 +-
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]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]