Discovered by gcc 4.6 as "warning: variable ‘controller’ set but not used"

Signed-off-by: Jan Safranek <jsafr...@redhat.com>
---

 tests/test_functions.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/test_functions.c b/tests/test_functions.c
index d9ca88e..796a2af 100644
--- a/tests/test_functions.c
+++ b/tests/test_functions.c
@@ -845,6 +845,12 @@ void test_cgroup_get_cgroup(int ctl1, int ctl2, struct 
uid_gid_t ids, int i)
                /* Create under another controller also */
                ret = set_controller(ctl2, controller_name, control_file);
                controller = cgroup_add_controller(cgroup_a, controller_name);
+               if (controller)
+                       message(i++, PASS, "cgroup_add_controller()",
+                                       0, info[NOMESSAGE]);
+               else
+                       message(i++, FAIL, "cgroup_add_controller()",
+                                       -1, info[NOMESSAGE]);
        }
        test_cgroup_create_cgroup(0, cgroup_a, "group_a", 0, 1, 1, 00);
 


------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to