[LTP] [PATCH] getsockopt01: Add case for errno EINVAL
Petr Vorel
pvorel@suse.cz
Thu May 16 03:39:45 CEST 2024
Hi Xu,
> Hi Xu,
> ...
> > +++ b/testcases/kernel/syscalls/getsockopt/getsockopt01.c
> > @@ -15,6 +15,7 @@
> > * - ENOTSOCK on a file descriptor not linked to a socket
> > * - EFAULT on invalid address of value or length
> > * - EOPNOTSUPP on invalid option name or protocol
> > + * - EINVAL on an invalid optlen
> > */
> > #include "tst_test.h"
> > @@ -24,6 +25,7 @@ static struct sockaddr_in sin0;
> > static int sinlen;
> > static int optval;
> > static socklen_t optlen;
> > +static socklen_t optleninval;
> Again, -1 should be added here (can be fixed before merge):
Merged with this fix. Thanks!
Kind regards,
Petr
More information about the ltp
mailing list