From: Jan Stancek <jstancek@redhat.com>
To: shyju pv <shyju.pv@huawei.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] Test case send01 fails in kernel version 3.6-rc1, rc2 and rc3
Date: Mon, 27 Aug 2012 07:16:58 -0400 (EDT) [thread overview]
Message-ID: <1291748381.11026946.1346066218005.JavaMail.root@redhat.com> (raw)
In-Reply-To: <E061084CB90FCE4F89232A6CF839683B32BC7591@SZXEML507-MBS.china.huawei.com>
----- Original Message -----
> From: "shyju pv" <shyju.pv@huawei.com>
> To: ltp-list@lists.sourceforge.net
> Cc: "shyju pv" <shyju.pv@huawei.com>
> 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
> Ltp-list@lists.sourceforge.net
> 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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2012-08-27 11:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-27 10:30 [LTP] Test case send01 fails in kernel version 3.6-rc1, rc2 and rc3 shyju pv
2012-08-27 11:16 ` Jan Stancek [this message]
2012-10-03 11:40 ` chrubis
[not found] ` <564795434.6124572.1349265888804.JavaMail.root@redhat.com>
2012-10-03 12:32 ` chrubis
2012-10-10 13:09 ` chrubis
2012-10-10 13:32 ` chrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1291748381.11026946.1346066218005.JavaMail.root@redhat.com \
--to=jstancek@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=shyju.pv@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox