]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
libcgroup Test: libcgrouptest-fix-to-empty-extra-string-and-add-a-new-warning
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 15:17:24 +0000 (15:17 +0000)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 15:17:24 +0000 (15:17 +0000)
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@265 4f4bb910-9a46-0410-90c8-c897d4f1cd53

tests/libcgrouptest01.c

index e1c93e80668969f62f91b33ecc360d52b96e9c46..bc994abfd942aef085e93010a134f2ce8d9dbfa9 100644 (file)
@@ -635,6 +635,8 @@ int main(int argc, char *argv[])
                else
                        message(++i, FAIL, "create_cgroup()", retval, extra);
 
+               strncpy(extra, "\n", SIZE);
+
                /*
                 * Test06: Call cgroup_attach_task() with a group with ctl1
                 * controller and check if return values are correct. If yes
@@ -1106,6 +1108,8 @@ static int set_controller(int controller, char *controller_name,
                /* Future controllers can be added here */
 
        default:
+               printf("Invalid controller name passed. Setting controller"
+                                       " failed. Dependent tests may fail\n");
                return 1;
                break;
        }