----- Original Message -----
> From: "shyju pv" <[email protected]>
> To: [email protected]
> Cc: "shyju pv" <[email protected]>
> Sent: Monday, 27 August, 2012 12:30:34 PM
> Subject: [LTP] Test case send01 fails in kernel version 3.6-rc1, rc2 and rc3
>
> Hi,
>
> sendt01 test cases fails from 3.6-rc1,rc2 and rc3
>
> Bug descreption:
> -------------------------
> LTP_Version: 2012-06-14
> LTP Test case: send01
> Description : Verifies the send syscall errorno for various failure
> cases
> Failure Analysis : when the invalid flag set , The system gives
> error no
> EOPNOTSUPP (95) whereas LTP expects EFAULT(14)
> Fix : Modify the LTP code with respect the the system return values
> of the
> latest kernel(3.6-rc1)
> Test case passed in Kernel 3.5
> Failed from 3.6-rc1,rc2and rc3
Looks to be the same reason as sendto().
I'm thinking we can either remove that test or change it to UDP:
diff --git a/testcases/kernel/syscalls/sendto/sendto01.c
b/testcases/kernel/syscalls/sendto/sendto01.c
index ad64c70..c8dd9bd 100644
--- a/testcases/kernel/syscalls/sendto/sendto01.c
+++ b/testcases/kernel/syscalls/sendto/sendto01.c
@@ -126,8 +126,8 @@ struct test_case_t { /* test case structure
*/
sizeof(sin1), -1, EPIPE, setup2, cleanup1,
"local endpoint shutdown"}
, {
- PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), -1, &sin1,
- sizeof(sin1), 0, EPIPE, setup1, cleanup1,
+ PF_INET, SOCK_DGRAM, 0, buf, sizeof(buf), -1, &sin1,
+ sizeof(sin1), -1, EOPNOTSUPP, setup1, cleanup1,
"invalid flags set"}
};
this way it should hit:
if (msg->msg_flags&MSG_OOB) /* Mirror BSD error message
compatibility */
return -EOPNOTSUPP;
I see the check is there at least since 2.6.11.
Any thoughts?
Regards,
Jan
>
> Execution Log
> ---------------------
> <<<test_output>>>
> incrementing stop
> send01 1 TPASS : bad file descriptor successful
> send01 2 TPASS : invalid socket successful
> send01 3 TPASS : invalid send buffer successful
> send01 4 TPASS : UDP message too big successful
> send01 5 TPASS : local endpoint shutdown successful
> send01 6 TFAIL : invalid flags set ; returned -1 (expected
> -1),
> errno
> 95 (expected 14)
> <<<execution_status>>>
> initiation_status="ok"
> duration=0 termination_type=exited termination_id=1 corefile=no
> cutime=0 cstime=0
> <<<test_end>>>
> INFO: ltp-pan reported some tests FAIL
>
> Shyju
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions
> will include endpoint security, mobile security and the latest in
> malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list