This patch adds two unit tests for cgroup_get_cgroups(). No changes were made to cgroup_get_cgroup().
In the near future I would like to significantly refactor this function. cgget does not use standard libcgroup data structures like struct cgroup, and a refactor of cgroup_get_cgroup() would allow portions of it to be used by cgget rather than having cgget reimplement the same functionality. Branch is here: https://github.com/drakenclimber/libcgroup/tree/tests/cgroup_get_cgroup Continuous integration tests are passing: https://github.com/drakenclimber/libcgroup/runs/443932251 Code coverage increased from 17.86% to 18.19%: https://coveralls.io/builds/28714489 Tom Hromatka (1): tests: Add unit tests for cgroup_get_cgroup() tests/gunit/006-cgroup_get_cgroup.cpp | 251 ++++++++++++++++++++++++++++++++++ tests/gunit/Makefile.am | 3 +- 2 files changed, 253 insertions(+), 1 deletion(-) create mode 100644 tests/gunit/006-cgroup_get_cgroup.cpp -- 1.8.3.1 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel