Commit b5d54eb5 authored by Arseniy Krasnov's avatar Arseniy Krasnov Committed by Paolo Abeni

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: default avatarArseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 02ab696f
...@@ -723,7 +723,7 @@ static void test_seqpacket_invalid_rec_buffer_server(const struct test_opts *opt ...@@ -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) ...@@ -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);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment