* [LTP] [PATCH 2/2] syscalls/mount/mount02.c: modify array "exp_enos"
2013-04-26 7:50 [LTP] [PATCH 1/2] syscalls/mount/mount02.c: cleanup DAN LI
@ 2013-04-26 7:53 ` DAN LI
2013-04-27 6:07 ` Mike Frysinger
2013-05-06 9:16 ` Wanlong Gao
0 siblings, 2 replies; 4+ messages in thread
From: DAN LI @ 2013-04-26 7:53 UTC (permalink / raw)
To: LTP list
Expected errno setted in array "exp_enos" do not match
echo test item rightly, leading to two problems:
* Not every test item in mount02 is executed.
There are 13 test items in mount02 currently to test error:
ENODEV, ENOTBLK, EBUSY, EBUSY, EINVAL, EINVAL, EINVAL, EFAULT,
EFAULT, ENAMETOOLONG, ENOENT, ENOENT, ENOTDIR
But, only 8 of them are tested as specified in array "exp_enos":
ENODEV, ENOTBLK, EBUSY, EINVAL, EFAULT, ENAMETOOLONG,
ENOENT, ENOTDIR
* For test item which is executed, its errno returned is maybe not
the one expected.
This patch modifies array "exp_enos" to make it one-to-one correspondent
with echo test item, to fix above problems.
Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
---
testcases/kernel/syscalls/mount/mount02.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/mount/mount02.c b/testcases/kernel/syscalls/mount/mount02.c
index 8dcf8de..95796f2 100644
--- a/testcases/kernel/syscalls/mount/mount02.c
+++ b/testcases/kernel/syscalls/mount/mount02.c
@@ -81,8 +81,10 @@ static char *device;
static int Tflag;
static int Dflag;
-static int exp_enos[] = { ENODEV, ENOTBLK, EBUSY, EINVAL, EFAULT, ENAMETOOLONG,
- ENOENT, ENOTDIR, 0
+static int exp_enos[] = {
+ ENODEV, ENOTBLK, EBUSY, EBUSY, EINVAL,
+ EINVAL, EINVAL, EFAULT, EFAULT, ENAMETOOLONG,
+ ENOENT, ENOENT, ENOTDIR, 0
};
int TST_TOTAL = (sizeof(exp_enos) / sizeof(exp_enos[0])) - 1;
--
1.8.1
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH 2/2] syscalls/mount/mount02.c: modify array "exp_enos"
@ 2013-04-26 16:38 DAN LI
0 siblings, 0 replies; 4+ messages in thread
From: DAN LI @ 2013-04-26 16:38 UTC (permalink / raw)
To: vapier; +Cc: ltp-list
> >Expected errno setted in array "exp_enos" do not match
> >echo test item rightly, leading to two problems:
>
>what is "echo test item" ?
Sorry for this type error confused you ...
s/echo/each
Thanks,
DAN LI
>-mike
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH 2/2] syscalls/mount/mount02.c: modify array "exp_enos"
2013-04-26 7:53 ` [LTP] [PATCH 2/2] syscalls/mount/mount02.c: modify array "exp_enos" DAN LI
@ 2013-04-27 6:07 ` Mike Frysinger
2013-05-06 9:16 ` Wanlong Gao
1 sibling, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2013-04-27 6:07 UTC (permalink / raw)
To: ltp-list
[-- Attachment #1.1: Type: Text/Plain, Size: 189 bytes --]
On Friday 26 April 2013 03:53:38 DAN LI wrote:
> Expected errno setted in array "exp_enos" do not match
> echo test item rightly, leading to two problems:
what is "echo test item" ?
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 421 bytes --]
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
[-- Attachment #3: 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] 4+ messages in thread
* Re: [LTP] [PATCH 2/2] syscalls/mount/mount02.c: modify array "exp_enos"
2013-04-26 7:53 ` [LTP] [PATCH 2/2] syscalls/mount/mount02.c: modify array "exp_enos" DAN LI
2013-04-27 6:07 ` Mike Frysinger
@ 2013-05-06 9:16 ` Wanlong Gao
1 sibling, 0 replies; 4+ messages in thread
From: Wanlong Gao @ 2013-05-06 9:16 UTC (permalink / raw)
To: DAN LI; +Cc: LTP list
On 04/26/2013 03:53 PM, DAN LI wrote:
> Expected errno setted in array "exp_enos" do not match
> echo test item rightly, leading to two problems:
>
> * Not every test item in mount02 is executed.
> There are 13 test items in mount02 currently to test error:
> ENODEV, ENOTBLK, EBUSY, EBUSY, EINVAL, EINVAL, EINVAL, EFAULT,
> EFAULT, ENAMETOOLONG, ENOENT, ENOENT, ENOTDIR
>
> But, only 8 of them are tested as specified in array "exp_enos":
> ENODEV, ENOTBLK, EBUSY, EINVAL, EFAULT, ENAMETOOLONG,
> ENOENT, ENOTDIR
>
> * For test item which is executed, its errno returned is maybe not
> the one expected.
>
> This patch modifies array "exp_enos" to make it one-to-one correspondent
> with echo test item, to fix above problems.
>
> Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Applied with s/echo/each/, thanks for you and Mike.
Wanlong Gao
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-06 9:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-26 16:38 [LTP] [PATCH 2/2] syscalls/mount/mount02.c: modify array "exp_enos" DAN LI
-- strict thread matches above, loose matches on Subject: below --
2013-04-26 7:50 [LTP] [PATCH 1/2] syscalls/mount/mount02.c: cleanup DAN LI
2013-04-26 7:53 ` [LTP] [PATCH 2/2] syscalls/mount/mount02.c: modify array "exp_enos" DAN LI
2013-04-27 6:07 ` Mike Frysinger
2013-05-06 9:16 ` Wanlong Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox