]> www.infradead.org Git - users/willy/pagecache.git/commit
vsock/test: verify socket options after setting them
authorKonstantin Shkolnyy <kshk@linux.ibm.com>
Tue, 3 Dec 2024 15:06:56 +0000 (09:06 -0600)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 5 Dec 2024 10:39:34 +0000 (11:39 +0100)
commit86814d8ffd55fd4ad19c512eccd721522a370fb2
tree4824227ceb3657fbbccdab4ea9d6d0a20a7e7c10
parent3f36ee29e732b68044d531f47d31f22d265954c6
vsock/test: verify socket options after setting them

Replace setsockopt() calls with calls to functions that follow
setsockopt() with getsockopt() and check that the returned value and its
size are the same as have been set. (Except in vsock_perf.)

Signed-off-by: Konstantin Shkolnyy <kshk@linux.ibm.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/vsock/control.c
tools/testing/vsock/msg_zerocopy_common.c
tools/testing/vsock/msg_zerocopy_common.h
tools/testing/vsock/util.c
tools/testing/vsock/util.h
tools/testing/vsock/vsock_perf.c
tools/testing/vsock/vsock_test.c
tools/testing/vsock/vsock_test_zerocopy.c
tools/testing/vsock/vsock_uring_test.c