]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
gunit: Add unit tests for get_next_rule_field()
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 22 Jan 2025 12:12:59 +0000 (17:42 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 13 Feb 2025 16:01:01 +0000 (09:01 -0700)
commit282e7135ba4f200c1cd3d13f2f77ef67efea89ca
treeaaedb99bc5e67874494d0861ddff8e19295072cb
parent914b919d007611912d714f7935111d9275494f8e
gunit: Add unit tests for get_next_rule_field()

[----------] 10 tests from GetNextRuleField
[ RUN      ] GetNextRuleField.InvalidParameters
[       OK ] GetNextRuleField.InvalidParameters (0 ms)
[ RUN      ] GetNextRuleField.FieldLenTooSmall
[       OK ] GetNextRuleField.FieldLenTooSmall (0 ms)
[ RUN      ] GetNextRuleField.FieldLenTooSmallWithQuotes
[       OK ] GetNextRuleField.FieldLenTooSmallWithQuotes (0 ms)
[ RUN      ] GetNextRuleField.FieldLenTooSmallWithQuotes2
[       OK ] GetNextRuleField.FieldLenTooSmallWithQuotes2 (0 ms)
[ RUN      ] GetNextRuleField.UserAndProcess
[       OK ] GetNextRuleField.UserAndProcess (0 ms)
[ RUN      ] GetNextRuleField.UserOnly
[       OK ] GetNextRuleField.UserOnly (0 ms)
[ RUN      ] GetNextRuleField.KeyWithQuotesAndSpaces
[       OK ] GetNextRuleField.KeyWithQuotesAndSpaces (0 ms)
[ RUN      ] GetNextRuleField.DestinationWithQuotes
[       OK ] GetNextRuleField.DestinationWithQuotes (0 ms)
[ RUN      ] GetNextRuleField.TabsAsDelimiters
[       OK ] GetNextRuleField.TabsAsDelimiters (0 ms)
[ RUN      ] GetNextRuleField.RuleWithOptions
[       OK ] GetNextRuleField.RuleWithOptions (0 ms)
[----------] 10 tests from GetNextRuleField (0 ms total)

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