* [LTP] [Patch v2] readlink03 test case fix
@ 2011-09-12 11:47 Nageswara R Sastry
2011-09-26 10:43 ` Michal Simek
0 siblings, 1 reply; 3+ messages in thread
From: Nageswara R Sastry @ 2011-09-12 11:47 UTC (permalink / raw)
To: ltp-list
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
In readlink03 testcase,
When 'Symlink Pathname is empty' the return value was 'ENOENT' but with
newer kernels the return value is 'EINVAL'. The following patch will fix
this.
readlink03:
Before patch:
...
readlink03 9 TFAIL : readlink() failed, Symlink Pathname is empty,
errno=22, expected errno=2
...
After patch:
...
readlink03 9 TPASS : readlink(), Symlink Pathname is empty,
returned errno 22
readlink03 10 TPASS : readlink(), Symlink Pathname is empty,
returned errno 22
...
Signed-off-by: Nageswara R Sastry <rnsastry@linux.vnet.ibm.com>
--
Regards
R.Nageswara Sastry
[-- Attachment #2: readlink03.patch --]
[-- Type: text/plain, Size: 645 bytes --]
--- ltp.orig/testcases/kernel/syscalls/readlink/readlink03.c 2011-09-08 11:32:12.000000000 +0200
+++ ltp/testcases/kernel/syscalls/readlink/readlink03.c 2011-09-12 13:29:10.000000000 +0200
@@ -173,6 +173,11 @@ int main(int ac, char **av)
buf_size = sizeof(buffer);
}
+ if (strncmp(test_desc, "Symlink Pathname is empty", 25) == 0) {
+ if ((tst_kvercmp(2, 6, 39)) >= 0)
+ Test_cases[i].exp_errno = EINVAL;
+ }
+
/*
* Call readlink(2) to test different test conditions.
* verify that it fails with -1 return value and sets
@@ -358,4 +363,4 @@ void cleanup()
tst_rmdir();
-}
\ No newline at end of file
+}
[-- Attachment #3: Type: text/plain, Size: 433 bytes --]
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [Patch v2] readlink03 test case fix
2011-09-12 11:47 [LTP] [Patch v2] readlink03 test case fix Nageswara R Sastry
@ 2011-09-26 10:43 ` Michal Simek
2011-10-05 13:02 ` Cyril Hrubis
0 siblings, 1 reply; 3+ messages in thread
From: Michal Simek @ 2011-09-26 10:43 UTC (permalink / raw)
To: Nageswara R Sastry; +Cc: ltp-list
Nageswara R Sastry wrote:
> In readlink03 testcase,
> When 'Symlink Pathname is empty' the return value was 'ENOENT' but with
> newer kernels the return value is 'EINVAL'. The following patch will fix
> this.
>
> readlink03:
> Before patch:
> ...
> readlink03 9 TFAIL : readlink() failed, Symlink Pathname is empty,
> errno=22, expected errno=2
> ...
>
> After patch:
> ...
> readlink03 9 TPASS : readlink(), Symlink Pathname is empty,
> returned errno 22
> readlink03 10 TPASS : readlink(), Symlink Pathname is empty,
> returned errno 22
> ...
>
> Signed-off-by: Nageswara R Sastry <rnsastry@linux.vnet.ibm.com>
Please add it to mainline.
Tested-by: Michal Simek <michal.simek@petalogix.com>
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [Patch v2] readlink03 test case fix
2011-09-26 10:43 ` Michal Simek
@ 2011-10-05 13:02 ` Cyril Hrubis
0 siblings, 0 replies; 3+ messages in thread
From: Cyril Hrubis @ 2011-10-05 13:02 UTC (permalink / raw)
To: Michal Simek; +Cc: ltp-list
Hi!
> Please add it to mainline.
>
> Tested-by: Michal Simek <michal.simek@petalogix.com>
Commited.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-05 12:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-12 11:47 [LTP] [Patch v2] readlink03 test case fix Nageswara R Sastry
2011-09-26 10:43 ` Michal Simek
2011-10-05 13:02 ` Cyril Hrubis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.