summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvana Hutarova Varekova <varekova@redhat.com>2009-12-10 13:26:11 +0100
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2009-12-16 14:03:20 +0530
commit4fe7821cb82d4866a665c96135c40a662fdf00b8 (patch)
tree1365cada1c6735fd57877070be44bd518f40dc41
parentf39390ba9456ceda64fb0422d1f4d40d9352b00c (diff)
downloadlibcg-4fe7821cb82d4866a665c96135c40a662fdf00b8.tar.gz
libcg-4fe7821cb82d4866a665c96135c40a662fdf00b8.tar.xz
libcg-4fe7821cb82d4866a665c96135c40a662fdf00b8.zip
Enable get_all_controller test
This patch enable get_all_controller test Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
-rw-r--r--tests/Makefile.am3
-rw-r--r--tests/get_all_controller.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 14bcdf3..1161292 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -2,7 +2,7 @@ INCLUDES = -I$(top_srcdir)/include
LDADD = $(top_srcdir)/src/.libs/libcgroup.la
# compile the tests, but do not install them
-noinst_PROGRAMS = libcgrouptest01 libcg_ba setuid pathtest walk_test read_stats walk_task get_controller get_mount_point proctest
+noinst_PROGRAMS = libcgrouptest01 libcg_ba setuid pathtest walk_test read_stats walk_task get_controller get_mount_point proctest get_all_controller
libcgrouptest01_SOURCES=libcgrouptest01.c test_functions.c libcgrouptest.h
libcg_ba_SOURCES=libcg_ba.cpp
@@ -14,6 +14,7 @@ walk_task_SOURCES=walk_task.c
get_controller_SOURCES=get_controller.c
get_mount_point_SOURCES=get_mount_point.c
proctest_SOURCES=proctest.c
+get_all_controller_SOURCES=get_all_controller.c
EXTRA_DIST = pathtest.sh runlibcgrouptest.sh
diff --git a/tests/get_all_controller.c b/tests/get_all_controller.c
index 3df3ca8..d643c98 100644
--- a/tests/get_all_controller.c
+++ b/tests/get_all_controller.c
@@ -22,7 +22,7 @@ int main()
info.hierarchy, info.num_cgroups, info.enabled);
error = cgroup_get_all_controller_next(&handle, &info);
if (error && error != ECGEOF) {
- printf("cgroup_get_contrller_next failed with %s\n",
+ printf("cgroup_get_controller_next failed with %s\n",
cgroup_strerror(error));
exit(1);
}