cgroup-util: Move macros to macros and tests to tests

Friends to friends to be consistent with the other macros and make tests
separate from main code.
This commit is contained in:
Michal Koutný
2022-01-10 18:22:41 +01:00
parent d43ffcac84
commit d2bd0bfa36
3 changed files with 23 additions and 19 deletions
+9
View File
@@ -426,4 +426,13 @@ TEST(cg_get_keyed_attribute) {
}
}
TEST(bfq_weight_conversion) {
assert_se(BFQ_WEIGHT(1) == 1);
assert_se(BFQ_WEIGHT(50) == 50);
assert_se(BFQ_WEIGHT(100) == 100);
assert_se(BFQ_WEIGHT(500) == 136);
assert_se(BFQ_WEIGHT(5000) == 545);
assert_se(BFQ_WEIGHT(10000) == 1000);
}
DEFINE_TEST_MAIN(LOG_DEBUG);