diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:18:56 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:18:56 +0000 |
commit | 6ce960c88547e643377ce22c02964d9c01d074e3 (patch) | |
tree | fd5eae4a2c6f0d9e1a1f75b7211436a4e36b95c0 /libcgroup.spec.in | |
parent | bf1c1a60f29dc2435bc0029c8f07a88559bfc8fb (diff) | |
download | libcg-6ce960c88547e643377ce22c02964d9c01d074e3.tar.gz libcg-6ce960c88547e643377ce22c02964d9c01d074e3.tar.xz libcg-6ce960c88547e643377ce22c02964d9c01d074e3.zip |
libcgroup Test: libcgroup-create-function-for-attach_task-api
This patch creates a function test_cgroup_attach_task() to test the libcgroup
api cgroup_attach_task() 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 test case becomes
thread safe as all the variables are now declared on stack. The other benefit
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@268 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'libcgroup.spec.in')
0 files changed, 0 insertions, 0 deletions