public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH]:fix the bug of macro in getdelays.c
@ 2009-09-14  7:55 liubo
  2009-09-15  6:08 ` Subrata Modak
  0 siblings, 1 reply; 2+ messages in thread
From: liubo @ 2009-09-14  7:55 UTC (permalink / raw)
  To: ltp-list; +Cc: ltp-list

When running cgroup test, I found a bug of macro in 
getdelays.c, which refers to the spelling mistake. 
And this leads to testcase_eight's abnormal delay. 

Relative macro:
	HAVE_LINUX_CGROUPSTATS_H

Change macro HAVE_LINUX_CGROUPSTAT_H to HAVE_LINUX_CGROUPSTATS_H
to fix the bug.


signed-off-by:Liu Bo <liubo-fnst@cn.fujitsu.com>
---
diff --git a/testcases/kernel/controllers/cgroup/getdelays.c b/testcases/kernel/controllers/cgroup/getdelays.c
index 478b325..c9f532d 100644
--- a/testcases/kernel/controllers/cgroup/getdelays.c
+++ b/testcases/kernel/controllers/cgroup/getdelays.c
@@ -397,7 +397,7 @@ int main(int argc, char *argv[])
 	}
 
 	if (containerset) {
-		#ifdef HAVE_LINUX_CGROUPSTAT_H
+		#ifdef HAVE_LINUX_CGROUPSTATS_H
 		cfd = open(containerpath, O_RDONLY);
 		if (cfd < 0) {
 			perror("error opening container file");




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH]:fix the bug of macro in getdelays.c
  2009-09-14  7:55 [LTP] [PATCH]:fix the bug of macro in getdelays.c liubo
@ 2009-09-15  6:08 ` Subrata Modak
  0 siblings, 0 replies; 2+ messages in thread
From: Subrata Modak @ 2009-09-15  6:08 UTC (permalink / raw)
  To: liubo; +Cc: ltp-list

On Mon, 2009-09-14 at 15:55 +0800, liubo wrote: 
> When running cgroup test, I found a bug of macro in 
> getdelays.c, which refers to the spelling mistake. 
> And this leads to testcase_eight's abnormal delay. 
> 
> Relative macro:
> 	HAVE_LINUX_CGROUPSTATS_H
> 
> Change macro HAVE_LINUX_CGROUPSTAT_H to HAVE_LINUX_CGROUPSTATS_H
> to fix the bug.
> 
> 
> signed-off-by:Liu Bo <liubo-fnst@cn.fujitsu.com>

Thanks.

Regards--
Subrata

> ---
> diff --git a/testcases/kernel/controllers/cgroup/getdelays.c b/testcases/kernel/controllers/cgroup/getdelays.c
> index 478b325..c9f532d 100644
> --- a/testcases/kernel/controllers/cgroup/getdelays.c
> +++ b/testcases/kernel/controllers/cgroup/getdelays.c
> @@ -397,7 +397,7 @@ int main(int argc, char *argv[])
>  	}
> 
>  	if (containerset) {
> -		#ifdef HAVE_LINUX_CGROUPSTAT_H
> +		#ifdef HAVE_LINUX_CGROUPSTATS_H
>  		cfd = open(containerpath, O_RDONLY);
>  		if (cfd < 0) {
>  			perror("error opening container file");
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-15  6:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-14  7:55 [LTP] [PATCH]:fix the bug of macro in getdelays.c liubo
2009-09-15  6:08 ` Subrata Modak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox