]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
libcgroup Test: libcgroup-create-function-for-init-api
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 15:18:23 +0000 (15:18 +0000)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 15:18:23 +0000 (15:18 +0000)
commitbf1c1a60f29dc2435bc0029c8f07a88559bfc8fb
treef6257dd5af173d414bc45535e8983add6d31b03f
parentdef5595456cbf96de855ba8d69c8e46e16f2f9c4
libcgroup Test: libcgroup-create-function-for-init-api

This patch creates a function test_cgroup_init() to test the libcgroup api
cgroup_init() under different scenario. In the earlier approach we were not
usong functions and were testing the api sequentialy under different conditions.
The new approach has a single function for 1 api which can handle the testing
under all conditions. The advantage is that the code repetition has reduced now.

Signed-off-by:  Sudhir Kumar  <skumar@linux.vnet.ibm.com>

git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@267 4f4bb910-9a46-0410-90c8-c897d4f1cd53
tests/libcgrouptest.h
tests/libcgrouptest01.c