[LTP] [PATCH v2 2/3] lib: TCONF on "not supported" errnos in SAFE_SOCKET()
Petr Vorel
pvorel@suse.cz
Wed Mar 14 13:09:24 CET 2018
Hi Lianwen,
> Hi
> I am sorry I forget to report my debug info on RHEL7.5Beta about this
> question.
> I write a testcase on RHEL7.5Beta. the test case is below.
> #include <netinet/in.h>
> #include <sys/socket.h>
> #include <stdio.h>
> int main (int argc, const char * argv[])
> {
> //create a dccp socket
> int server_socket = socket(AF_INET6, SOCK_DCCP, IPPROTO_DCCP);
> if (server_socket == -1) {
> perror("socket error");
> return 1;
> }
> printf("test is ok \n");
> }
> And the RHEL7.5Beta will report "Socket type not supported" when run my
> testcase on RHEL7.5Beta .
This is ESOCKTNOSUPPORT.
> and the RHEL7.4GA will report "Permission denied " when run my testcase on
> RHEL7.4GA
Not sure why it does not report ESOCKTNOSUPPORT, but I've seen some of these.
> it's ok when run my testcase on RHEL7.3GA.
> That's all.
> Thanks
> Lianwen Sun
Thanks for testing!
Kind regards,
Petr
More information about the ltp
mailing list