This patch splits the earlier created function new_cgroup() into two
to make it more useful for other testcases.
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |2 +
tests/libcgrouptest01.c | 65 +++-
2
set_controller() need to be updated with respect to the controllers and
control file.
The challenges yet to be solved are:
(1)Choosing appropriate control file
(2)Choosing appropriate control value dynamicaly.
Thoughts are most welcome.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
Fixing a typo.(Bad effect of yy p :))
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@
Minor cleanups.
Signed-off-by: Sudhir KUmar <[EMAIL PROTECTED]>
Index: balbir-latest/tests/libcgrouptest01.c
===
--- balbir-latest.orig/tests/libcgrouptest01.c
+++ balbir-latest/tests/libcgrouptest01.c
@@ -214,9 +214,9 @@ in
third calll we give the argument as a non existing group, so the
return value should be ECGROUPNOTEXIST.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgr
Hi,
This patch does printf and other cleanups in second set of testcases.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 144
1 file changed, 86 insertions(+), 58 deletions(-)
Index: trunk/tests/libcgroup
function creation part is over.
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -223,14 +
This patch puts the common code into a function build_path()
and thus reduces lots of redundant lines of code.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |2
tests/libcgrouptest01.c | 106 +---
2 files c
This patch fixes a testcase which was having some typo errors.
(libcgroup api cgroup_delete_cgroup() for a common group in
multiple mount scenario)
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgroupte
main motto has been to avoid the global variables due to thread safety reasons.
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |9
tests/libcgrouptest01.c | 107
2 files changed, 116 insertions(+)
the testing
under all conditions. The advantage is that the code repetition has reduced now.
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest.h
===
--- test-devel.orig/tests/libcgroup
This patch adds a warning in case setting a controller fails and
tries to set values for another controller.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 17 +
1 file changed, 13 insertions(+), 4 deletions(-)
Index: trunk
this patch fixes the testcase for cgroup_modify_cgroup() multi mount.
The second controller was not initialised to a value, so doing that.
/me learns the bad effects of using global data structure :)
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: libcgroup-0.2/tests/libcgroup
Hi
The shell script as expected does not do a non null check using -n option
as i observed. hence changing the logic as below.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/runlibcgrouptest.sh
===
--
This patch fixes the NUM_MSGS error which was still 10, however there
are more type of messages to be printed. It also adds the support to just
print a new line in case there is no message to be printed.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: balbir-latest/tests/libcgroup
debug
devices
ns
cpuacct
cpuset
Also what type of values can be written to those control files?
I need to take care before i write something stupid to a control file.
Please review the patch and give your valuable comments.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -635,6 +635,8 @@ int main(int argc, char *argv[])
else
message(
Hi,
This patch does printf and other cleanups in third set of testcases.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 263
1 file changed, 177 insertions(+), 86 deletions(-)
Index: trunk/tests/libcgroup
The previous patch creating the function for attach_task() breaks a test case
because of global data usage. This patch fixes that.
(There will be functions corresponding to each API to test all the APIs)
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: test-devel
Hi,
This patch adds some warnings in case some testcses fail.
When we modify a group with nullcgroup then there is no need to
check if values are changed.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 22 +++---
1 file changed, 15 inse
This patch adds a testcase for libcgroup api cgroup_attach_task() for
a common group in multiple mount scenario.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-deve
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<[EMAIL PROTECTED]>
---
tests/libcgroup
Hi,
This patch does cleanup in first set of testcases.
It defines a new function to print test results.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |9 ++
tests/libcgrouptest01.c | 71 +---
2 files chang
Sometimes on some machines, encounterd an issue of getting the controllers
information in reverse order. So keeping the uniformity for future.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgroup
ommon code in a function.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |1
tests/libcgrouptest01.c | 76
2 files changed, 53 insertions(+), 24 deletions(-)
Index: trunk/tests/libcgr
The following patch makes certain cleanups for the patchset to apply without
any rejects. However the lines of code are being changed in one of the next
patches.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c |6 +++---
1 file changed, 3 insertions
Removing the hard coding of control values using config file is under progress
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: balbir-latest/tests/libcgrouptest01.c
===
--- balbir-latest.orig/tests/libcgrouptest01.c
ff-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -387,6 +387,8 @@ int main(int argc,
: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/runlibcgrouptest.sh
===
--- test-devel.orig/tests/runlibcgrouptest.sh
+++ test-devel/tests/runlibcgrouptest.sh
@@ -15,57 +15,78 @@
# Description: This script runs the the basic
Hi
The following patch adds three testcases for libcg apis create and delete
_cgroup()
and wrapper apis for multiple mount case.
The patch creates a valid cgroup structure with two controllers and after
calling to apis performs a check under both controllers.
Signed-off-by: Sudhir Kumar <[EM
???
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -930,7 +930,73 @@ int main(int argc, char
Hi,
This patch does cleanups in test script.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
Index: test-devel/tests/runlibcgrouptest.sh
===
--- test-devel.orig/tests/runlibcgroupt
Hi,
The api cgroup_modify_cgroup(cgroup1) had to be called before
cgroup_modify_cgroup(cgroup2). This patch does that.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 37 ++---
1 file changed, 22 insertions(+), 15 del
for that which will have the controller name,
control file name and the control value. But not sure if there is any better
approach.
So thoughts ???
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgroupte
Hi,
This patch adds a testcase for cgroup_attach_task() api for single mount.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 41 ++---
1 file changed, 34 insertions(+), 7 deletions(-)
Index: trunk/tests/libcgroupte
ff-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -20,6 +20,9 @@ int main(int argc, char *argv[])
{
int
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in th
Hi
The following patch adds the sanity check in c file for multiple mount case.
The parameter passed to the function decides whether the check is for single
mount or multiple mount.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |2 +-
tests/libcgroupte
The following patch removes the string to char * conversion warnings.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: trunk/tests/libcgrouptest.h
===
--- trunk.orig/tests/libcgrouptest.h
+++ trunk/tests/libcgroup
Chanhe the error values as per the change in APIs
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: libcgroup-0.2/tests/libcgrouptest01.c
===
--- libcgroup-0.2.orig/tests/libcgrouptest01.c
+++ libcgroup-0.2
-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -749,7 +749,39 @@ int main(int argc, char
This patch changes the control values to be written to control file.
The write of value 700 to memory.limt_in_bytes resulted in a silent
write of 764, because of which modify() test case was failing.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: balbir-latest
The following patch catches the error due to cgroup already mounted.
For now return an error and later write the routine to be called.
This routine will take a snapshot of the current state of mountpoint.
unount the mountpoint and remount it.
Signed-off-by: Sudhir Kumar <[EMAIL PROTEC
t Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Libcg-devel mailing list
> Libcg-devel@l
On Sat, Nov 29, 2008 at 11:29:06AM +0530, Sudhir Kumar wrote:
NACK.
Sorry Did not do the right way.
Will post the fresh patch soon
>
> The following patch catches the error due to cgroup already mounted.
> For now return an error and later write the routine to be called.
> This
-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: trunk/config.c
===
--- trunk.orig/config.c
+++ trunk/config.c
@@ -356,8 +356,16 @@ int cgroup_config_mount_fs()
ret = mount(cgroup_filesystem, curr->path, cgroup_f
This patch fixes the NUM_MSGS error which was still 10, however there
are more type of messages to be printed. It also adds the support to just
print a new line in case there is no message to be printed.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: balbir-latest/tests/libcgroup
This patch splits the earlier created function new_cgroup() into two
to make it more useful for other testcases.
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |2 +
tests/libcgrouptest01.c | 65 +++-
2
-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -749,7 +749,39 @@ int main(int argc, char
The following patch removes the string to char * conversion warnings.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: trunk/tests/libcgrouptest.h
===
--- trunk.orig/tests/libcgrouptest.h
+++ trunk/tests/libcgroup
Hi
The shell script as expected does not do a non null check using -n option
as i observed. hence changing the logic as below.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/runlibcgrouptest.sh
===
--
ommon code in a function.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |1
tests/libcgrouptest01.c | 76
2 files changed, 53 insertions(+), 24 deletions(-)
Index: trunk/tests/libcgr
Removing the hard coding of control values using config file is under progress
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: balbir-latest/tests/libcgrouptest01.c
===
--- balbir-latest.orig/tests/libcgrouptest01.c
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -635,6 +635,8 @@ int main(int argc, char *argv[])
else
message(
Minor cleanups.
Signed-off-by: Sudhir KUmar <[EMAIL PROTECTED]>
Index: balbir-latest/tests/libcgrouptest01.c
===
--- balbir-latest.orig/tests/libcgrouptest01.c
+++ balbir-latest/tests/libcgrouptest01.c
@@ -214,9 +214,9 @@ in
The following patch makes certain cleanups for the patchset to apply without
any rejects. However the lines of code are being changed in one of the next
patches.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c |6 +++---
1 file changed, 3 insertions
This patch fixes a testcase which was having some typo errors.
(libcgroup api cgroup_delete_cgroup() for a common group in
multiple mount scenario)
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgroupte
The previous patch creating the function for attach_task() breaks a test case
because of global data usage. This patch fixes that.
(There will be functions corresponding to each API to test all the APIs)
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: test-devel
Hi
The following patch adds the sanity check in c file for multiple mount case.
The parameter passed to the function decides whether the check is for single
mount or multiple mount.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |2 +-
tests/libcgroupte
for that which will have the controller name,
control file name and the control value. But not sure if there is any better
approach.
So thoughts ???
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgroupte
This patch puts the common code into a function build_path()
and thus reduces lots of redundant lines of code.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |2
tests/libcgrouptest01.c | 106 +---
2 files c
Hi,
This patch does printf and other cleanups in third set of testcases.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 263
1 file changed, 177 insertions(+), 86 deletions(-)
Index: trunk/tests/libcgroup
Hi,
This patch adds a testcase for cgroup_attach_task() api for single mount.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 41 ++---
1 file changed, 34 insertions(+), 7 deletions(-)
Index: trunk/tests/libcgroupte
Sometimes on some machines, encounterd an issue of getting the controllers
information in reverse order. So keeping the uniformity for future.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgroup
this patch fixes the testcase for cgroup_modify_cgroup() multi mount.
The second controller was not initialised to a value, so doing that.
/me learns the bad effects of using global data structure :)
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: libcgroup-0.2/tests/libcgroup
Hi,
This patch adds some warnings in case some testcses fail.
When we modify a group with nullcgroup then there is no need to
check if values are changed.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 22 +++---
1 file changed, 15 inse
This patch adds a testcase for libcgroup api cgroup_attach_task() for
a common group in multiple mount scenario.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-deve
function creation part is over.
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -223,14 +
the testing
under all conditions. The advantage is that the code repetition has reduced now.
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest.h
===
--- test-devel.orig/tests/libcgroup
: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/runlibcgrouptest.sh
===
--- test-devel.orig/tests/runlibcgrouptest.sh
+++ test-devel/tests/runlibcgrouptest.sh
@@ -15,57 +15,78 @@
# Description: This script runs the the basic
Fixing a typo.(Bad effect of yy p :))
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@
Chanhe the error values as per the change in APIs
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
Index: libcgroup-0.2/tests/libcgrouptest01.c
===
--- libcgroup-0.2.orig/tests/libcgrouptest01.c
+++ libcgroup-0.2
Hi
The following patch adds three testcases for libcg apis create and delete
_cgroup()
and wrapper apis for multiple mount case.
The patch creates a valid cgroup structure with two controllers and after
calling to apis performs a check under both controllers.
Signed-off-by: Sudhir Kumar <[EM
set_controller() need to be updated with respect to the controllers and
control file.
The challenges yet to be solved are:
(1)Choosing appropriate control file
(2)Choosing appropriate control value dynamicaly.
Thoughts are most welcome.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
main motto has been to avoid the global variables due to thread safety reasons.
Signed-off-by: Sudhir Kumar<[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |9
tests/libcgrouptest01.c | 107
2 files changed, 116 insertions(+)
???
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -930,7 +930,73 @@ int main(int argc, char
third calll we give the argument as a non existing group, so the
return value should be ECGROUPNOTEXIST.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgr
debug
devices
ns
cpuacct
cpuset
Also what type of values can be written to those control files?
I need to take care before i write something stupid to a control file.
Please review the patch and give your valuable comments.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
This patch changes the control values to be written to control file.
The write of value 700 to memory.limt_in_bytes resulted in a silent
write of 764, because of which modify() test case was failing.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: balbir-latest
ff-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -20,6 +20,9 @@ int main(int argc, char *argv[])
{
int
Hi,
The api cgroup_modify_cgroup(cgroup1) had to be called before
cgroup_modify_cgroup(cgroup2). This patch does that.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 37 ++---
1 file changed, 22 insertions(+), 15 del
Hi,
This patch does cleanups in test script.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
Index: test-devel/tests/runlibcgrouptest.sh
===
--- test-devel.orig/tests/runlibcgroupt
This patch adds a warning in case setting a controller fails and
tries to set values for another controller.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 17 +
1 file changed, 13 insertions(+), 4 deletions(-)
Index: trunk
ff-by: Sudhir Kumar <[EMAIL PROTECTED]>
Index: test-devel/tests/libcgrouptest01.c
===
--- test-devel.orig/tests/libcgrouptest01.c
+++ test-devel/tests/libcgrouptest01.c
@@ -387,6 +387,8 @@ int main(int argc,
Hi,
This patch does printf and other cleanups in second set of testcases.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest01.c | 144
1 file changed, 86 insertions(+), 58 deletions(-)
Index: trunk/tests/libcgroup
Hi,
This patch does cleanup in first set of testcases.
It defines a new function to print test results.
Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
---
tests/libcgrouptest.h |9 ++
tests/libcgrouptest01.c | 71 +---
2 files chang
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<[EMAIL PROTECTED]>
---
tests/libcgroup
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in th
ARGET)
>
The Makefile in the current way is not correct however. Instead of
linking to the library from the upper folder it should link from the
standard system path. I will fix it in sometime.
Rishi, Did you do a make install in upper dir
This patch adds testcases for cgroup_add_controller() wrapper api.
Signed-off-by: Sudhir Kumar
Index: trunk/tests/libcgrouptest01.c
===
--- trunk.orig/tests/libcgrouptest01.c
+++ trunk/tests/libcgrouptest01.c
@@ -133,6 +133,8
being used. I have fixed that in the dame patch to
maintain uniformity as this is a single line fix only and is well
commented in the code.
Signed-off-by: Sudhir Kumar
Index: trunk/tests/libcgrouptest01.c
===
--- trunk.orig/tests
-off-by: Sudhir Kumar
Index: trunk/tests/libcgrouptest.h
===
--- trunk.orig/tests/libcgrouptest.h
+++ trunk/tests/libcgrouptest.h
@@ -87,6 +87,8 @@ struct cgroup *get_new_cgroup_ds(int ctl
other
apis.
Signed-off-by: Sudhir Kumar
Index: balbir-latest/tests/libcgrouptest01.c
===
--- balbir-latest.orig/tests/libcgrouptest01.c
+++ balbir-latest/tests/libcgrouptest01.c
@@ -114,11 +114,8 @@ int main(int argc, char *argv
This patch replaces the magic numbers from the info messages with the
corresponding meaningful enums.
Signed-off-by: Sudhir Kumar
Index: trunk/tests/libcgrouptest.h
===
--- trunk.orig/tests/libcgrouptest.h
+++ trunk/tests
This patch adds testcases for different cgroup get_*, set_* wrapper apis.
Since the apis are quite small so added the test for them in the same patch.
Signed-off-by: sudhir Kumar
Index: trunk/tests/libcgrouptest.h
This patch creates the function test_cgroup_modify_cgroup(), to modify a
group in fs, and this way eliminates lot of redundant code. This patch
however may mesh up the numbering of testcases, which will be cleaned up
in a later patch.
Signed-off-by: Sudhir Kumar
Index: balbir-latest/tests
The following patch fixes the defect #2338181 on sourceforge.net.
However this is not the updated fix, but it helps in running the
test as the fix will be merged in the next release.
Signed-off-by: Sudhir Kumar
Index: trunk/libcgroup.h
.
Signed-off-by: Sudhir Kumar
Index: trunk/tests/libcgrouptest01.c
===
--- trunk.orig/tests/libcgrouptest01.c
+++ trunk/tests/libcgrouptest01.c
@@ -295,9 +295,10 @@ int main(int argc, char *argv[])
* filesystem. Read it
The coming patchset generates the functions corresponding to testing each api.
It does some cleanup as well. Testcases are neat and clean now.
--
Regards
Sudhir Kumar
Linux Technology Center
IBM, India.
--
SF.Net email
This patch adds a testcase for cgroup_compare_cgroup() wrapper.
Signed-off-by: Sudhir Kumar
Index: balbir-latest/tests/libcgrouptest.h
===
--- balbir-latest.orig/tests/libcgrouptest.h
+++ balbir-latest/tests/libcgrouptest.h
1 - 100 of 152 matches
Mail list logo