]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: use CAP_LIMIT at one more place
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Oct 2025 16:52:56 +0000 (01:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Oct 2025 16:52:56 +0000 (01:52 +0900)
src/test/test-capability-list.c

index 0f5d53276db5005a762aaecc8495d5a6759379f7..c57b57acf82d34935bf48c6ca85f8e0d61cbf557 100644 (file)
@@ -150,9 +150,9 @@ static void test_capability_set_to_string_invalid(uint64_t invalid_cap_set) {
 TEST(capability_set_to_string) {
         test_capability_set_to_string_invalid(0);
 
-        /* once the kernel supports 62 caps, there are no 'invalid' numbers
+        /* once the kernel supports 62 (CAP_LIMIT) caps, there are no 'invalid' numbers
          * for us to test with */
-        if (cap_last_cap() < 62)
+        if (cap_last_cap() < CAP_LIMIT)
                 test_capability_set_to_string_invalid(all_capabilities() + 1);
 }