----- Original Message -----
> From: [email protected]
> To: "Jan Stancek" <[email protected]>
> Cc: "shyju pv" <[email protected]>, [email protected]
> Sent: Wednesday, 10 October, 2012 3:09:52 PM
> Subject: Re: [LTP] Test case send01 fails in kernel version 3.6-rc1, rc2 and
> rc3
>
> Hi!
> > Okay then I will prepare patch. Stay tuned.
>
> I've just pushed patch to fix this (tested on 3.6.1).
It fails for me on 3.6.0:
# ./send01
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)
It works if I change the tst_kvercmp check to:
diff --git a/testcases/kernel/syscalls/send/send01.c
b/testcases/kernel/syscalls/send/send01.c
index fd672d0..97bce2e 100644
--- a/testcases/kernel/syscalls/send/send01.c
+++ b/testcases/kernel/syscalls/send/send01.c
@@ -354,6 +354,6 @@ static void setup3(void)
{
setup1();
- if (tst_kvercmp(3, 6, 0))
+ if (tst_kvercmp(3, 6, 0) >= 0)
tdat[testno].experrno = ENOTSUP;
}
# ./send01
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 TPASS : invalid flags set successful
Can you change this in all three testcases? Or should I send a patch?
Thank you,
Jan
>
> --
> Cyril Hrubis
> [email protected]
>
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list