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 <[email protected]>
---
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to