summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/libcgrouptest.h2
-rw-r--r--tests/libcgrouptest01.c4
-rw-r--r--tests/test_functions.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h
index 00765bd..a0f82d6 100644
--- a/tests/libcgrouptest.h
+++ b/tests/libcgrouptest.h
@@ -126,7 +126,7 @@ void test_cgroup_get_cgroup(int ctl1, int ctl2, struct uid_gid_t ids, int i);
void test_cgroup_compare_cgroup(int ctl1, int ctl2, int i);
void test_cgroup_add_free_controller(int i);
-void get_controllers(const char *name, int *exist);
+void is_subsystem_enabled(const char *name, int *exist);
int group_exist(char *path_group);
int set_controller(int controller, char *controller_name,
char *control_file);
diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c
index a4a492d..d489d9c 100644
--- a/tests/libcgrouptest01.c
+++ b/tests/libcgrouptest01.c
@@ -73,8 +73,8 @@ int main(int argc, char *argv[])
/*
* check if one of the supported controllers is cpu or memory
*/
- get_controllers("cpu", &cpu);
- get_controllers("memory", &memory);
+ is_subsystem_enabled("cpu", &cpu);
+ is_subsystem_enabled("memory", &memory);
if (cpu == 0 && memory == 0) {
fprintf(stderr, "none of cpu and memory controllers"
" is enabled in kernel\n");
diff --git a/tests/test_functions.c b/tests/test_functions.c
index 6af9efd..80e4e90 100644
--- a/tests/test_functions.c
+++ b/tests/test_functions.c
@@ -321,7 +321,7 @@ void test_cgroup_delete_cgroup(int retcode, struct cgroup *cgrp,
* @param name the name of the controller to be checked
* @param exist set to 1 if the controller exists
*/
-void get_controllers(const char *name, int *exist)
+void is_subsystem_enabled(const char *name, int *exist)
{
int hierarchy, num_cgroups, enabled;
FILE *fd;