]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
libcgroup: Add test cases for new get_task API
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Wed, 22 Apr 2009 10:00:20 +0000 (15:30 +0530)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Wed, 22 Apr 2009 10:16:54 +0000 (15:46 +0530)
commite672700698bf8078ed8cc277855760d6d030dae5
tree1f706d0aa7e341aa325e8cf44c43f7ad70dfffdd
parent9414f3be0c3f191fdea212ecc3157af5e70a45de
libcgroup: Add test cases for new get_task API

This is the test case for the new API. This test takes one argument, the
group name.

Sample run on my system with this test case returns,

[dhaval@gondor tests]$ ../libtool --mode=execute ./walk_task a
Printing the details of groups a
Pid is 6092
Pid is 11315
Pid is 11318
Pid is 11319
Pid is 11324
Pid is 13234
[dhaval@gondor tests]$

Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Acked-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
tests/Makefile.am
tests/walk_task.c [new file with mode: 0644]