aboutsummaryrefslogtreecommitdiffstats
path: root/tests/connection-test.c
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/connection-test.c
parentDo not allow nullable arrays, which were not correctly implemented (diff)
downloadwayland-971f8e4ace3d4080340f43574043c31f46db312f.tar
wayland-971f8e4ace3d4080340f43574043c31f46db312f.tar.gz
wayland-971f8e4ace3d4080340f43574043c31f46db312f.tar.bz2
wayland-971f8e4ace3d4080340f43574043c31f46db312f.tar.lz
wayland-971f8e4ace3d4080340f43574043c31f46db312f.tar.xz
wayland-971f8e4ace3d4080340f43574043c31f46db312f.tar.zst
wayland-971f8e4ace3d4080340f43574043c31f46db312f.zip
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/connection-test.c')
-rw-r--r--tests/connection-test.c3
1 files changed, 0 insertions, 3 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);