summaryrefslogtreecommitdiff
path: root/tests/warn
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2015-03-01 21:36:12 +0100
committerDieter Verfaillie <dieterv@optionexplicit.be>2015-03-03 22:07:45 +0100
commit50dfb465658a5c1705cac51a31f145fee8b6b168 (patch)
treec5ebae7ac13589e4ef74138076792faa25ba46ec /tests/warn
parent7e41a4c31acf729cba6e071692d03779eba77eea (diff)
downloadgobject-introspection-50dfb465658a5c1705cac51a31f145fee8b6b168.tar.gz
scanner: allow (array zero-terminated) instead of (array zero-terminated=1)
What we already had: - (array zero-terminated=1) > array which is NULL terminated - (array zero-terminated=0) > array which is not NULL terminated - (array) > array which is not NULL terminated - (array zero-terminated=X) > array which is not NULL terminated where X can be anything What this patch adds: - (array zero-terminated) > array which is NULL terminated https://bugzilla.gnome.org/show_bug.cgi?id=657754
Diffstat (limited to 'tests/warn')
-rw-r--r--tests/warn/invalid-array.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/warn/invalid-array.h b/tests/warn/invalid-array.h
index b9b828cf..97ad3e9f 100644
--- a/tests/warn/invalid-array.h
+++ b/tests/warn/invalid-array.h
@@ -18,8 +18,7 @@ void
test_invalid_array_zero_terminated (char ***out1,
char ***out2);
-// EXPECT:14: Warning: Test: "array" annotation option "zero-terminated" needs a value
-// EXPECT:15: Warning: Test: invalid "array" annotation option "zero-terminated" value "foobar", must be an integer
+// EXPECT:15: Warning: Test: invalid "array" annotation option "zero-terminated" value "foobar", must be 0 or 1
/**
* test_invalid_array_fixed_size:
@@ -30,8 +29,8 @@ void
test_invalid_array_fixed_size (char ***out1,
char ***out2);
-// EXPECT:26: Warning: Test: "array" annotation option "fixed-size" needs a value
-// EXPECT:27: Warning: Test: invalid "array" annotation option "fixed-size" value "foobar", must be an integer
+// EXPECT:25: Warning: Test: "array" annotation option "fixed-size" needs a value
+// EXPECT:26: Warning: Test: invalid "array" annotation option "fixed-size" value "foobar", must be an integer
/**
* test_invalid_array_length:
@@ -41,4 +40,4 @@ void
test_invalid_array_length (char ***out1,
char ***out2);
-// EXPECT:38: Warning: Test: "array" annotation option "length" needs a value
+// EXPECT:37: Warning: Test: "array" annotation option "length" needs a value