]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
gunit: Add unit tests for cgroup_process_v1_mnt()
authorTom Hromatka <tom.hromatka@oracle.com>
Thu, 7 May 2020 20:15:24 +0000 (20:15 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 7 May 2020 20:29:24 +0000 (20:29 +0000)
commit0ba5c1c25757e6960d14347261786a084077d913
tree512e653df20c40713f372b7088d24d5f787c4c05
parent132ead3ecd66b8e620a13c58f667e5d5e14649f2
gunit: Add unit tests for cgroup_process_v1_mnt()

This commit adds unit tests for cgroup_process_v1_mnt().  Note
that the compiler flag -Wno-write-strings was also added because
C++ throws a warning due to how the controllers[] array is
utilized.

[----------] 4 tests from CgroupProcessV1MntTest
[ RUN      ] CgroupProcessV1MntTest.AddV1Mount
[       OK ] CgroupProcessV1MntTest.AddV1Mount (0 ms)
[ RUN      ] CgroupProcessV1MntTest.AddV1Mount_Duplicate
[       OK ] CgroupProcessV1MntTest.AddV1Mount_Duplicate (0 ms)
[ RUN      ] CgroupProcessV1MntTest.AddV1NamedMount
[       OK ] CgroupProcessV1MntTest.AddV1NamedMount (0 ms)
[ RUN      ] CgroupProcessV1MntTest.AddV1NamedMount_Duplicate
[       OK ] CgroupProcessV1MntTest.AddV1NamedMount_Duplicate (0 ms)
[----------] 4 tests from CgroupProcessV1MntTest (0 ms total)

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
gunit/007-cgroup_process_v1_mount.cpp [new file with mode: 0644]
gunit/Makefile.am