test-loop-block: Migrate to new assertion macros and framework

While we're at it, rename to test-loop-util.c so it matches its
source file.

We also drop the root check and solely check for CAP_SYS_ADMIN since
that's sufficient to run the tests.
This commit is contained in:
Daan De Meyer
2026-04-02 18:08:25 +02:00
committed by Daan De Meyer
parent dcce04e649
commit d49df940ec
3 changed files with 108 additions and 114 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ if [[ -z "${TEST_MATCH_SUBTEST:-}" ]]; then
# in QEMU to only those that can't run in a container to avoid running
# the same tests again in a, most likely, very slow environment
if ! systemd-detect-virt -qc && [[ "${TEST_PREFER_NSPAWN:-0}" -ne 0 ]]; then
TEST_MATCH_SUBTEST="test-loop-block"
TEST_MATCH_SUBTEST="test-loop-util"
else
TEST_MATCH_SUBTEST="test-*"
fi