summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Douglas Scott <idscott@system76.com>2022-07-14 08:36:21 -0700
committerIan Douglas Scott <idscott@system76.com>2022-07-14 08:38:49 -0700
commit971f8e4ace3d4080340f43574043c31f46db312f (patch)
tree4d543a3ac6c83d899ec1c3d6878b0c5f39fb20e3 /tests
parent13b05c9ed1570765923a28b277ca385001c2b5c6 (diff)
downloadwayland-971f8e4ace3d4080340f43574043c31f46db312f.tar.gz
Do not allow nullable `new_id`
The usefulness of this is limited, and `libwayland-client` doesn't provide a way to pass a null `new_id` since the id is generated by the library and given to the caller as the return value. Signed-off-by: Ian Douglas Scott <idscott@system76.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/connection-test.c3
-rw-r--r--tests/message-test.c4
2 files changed, 2 insertions, 5 deletions
diff --git a/tests/connection-test.c b/tests/connection-test.c
index 592e27e..9762e0d 100644
--- a/tests/connection-test.c
+++ b/tests/connection-test.c
@@ -245,9 +245,6 @@ TEST(connection_marshal)
marshal(&data, "n", 12, &object);
assert(data.buffer[2] == object.id);
- marshal(&data, "?n", 12, NULL);
- assert(data.buffer[2] == 0);
-
array.data = (void *) text;
array.size = sizeof text;
marshal(&data, "a", 20, &array);
diff --git a/tests/message-test.c b/tests/message-test.c
index 40293a9..86f387a 100644
--- a/tests/message-test.c
+++ b/tests/message-test.c
@@ -63,8 +63,8 @@ TEST(message_count_arrays)
{ "middle", "iufasonh", NULL },
{ "multiple", "aaiufaasonhaa", NULL },
{ "leading_version", "2aaiufaasonhaa", NULL },
- { "among_nullables", "iufsa?oa?nah", NULL },
- { "all_mixed", "2aiufas?oa?na", NULL },
+ { "among_nullables", "iufsa?oa?sah", NULL },
+ { "all_mixed", "2aiufas?oa?sa", NULL },
};
const struct {
const struct wl_message *message;