mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 13:43:51 +00:00
vsock/test: update expected return values
This updates expected return values for invalid buffer test. Now such values are returned from transport, not from af_vsock.c. Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
02ab696feb
commit
b5d54eb589
@ -723,7 +723,7 @@ static void test_seqpacket_invalid_rec_buffer_server(const struct test_opts *opt
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (errno != ENOMEM) {
|
if (errno != EFAULT) {
|
||||||
perror("unexpected errno of 'broken_buf'");
|
perror("unexpected errno of 'broken_buf'");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
@ -887,7 +887,7 @@ static void test_inv_buf_client(const struct test_opts *opts, bool stream)
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (errno != ENOMEM) {
|
if (errno != EFAULT) {
|
||||||
fprintf(stderr, "unexpected recv(2) errno %d\n", errno);
|
fprintf(stderr, "unexpected recv(2) errno %d\n", errno);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user