]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests/cgroup: fix misleading debug message in test_cgfreezer_time_child
authorTao Cui <cuitao@kylinos.cn>
Mon, 11 May 2026 06:25:20 +0000 (14:25 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 11 May 2026 08:29:12 +0000 (22:29 -1000)
The debug message says "Expect ctime <= ptime" when the test actually
expects ctime > ptime (child's freeze time should exceed parent's,
which is zero). Fix the message to match the actual expectation.

Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/cgroup/test_freezer.c

index 97fae92c8387eb8a3b93b62b2df4f0e411a50fac..ead68542d45e9a427c23072c4aeefc5eae71f9e3 100644 (file)
@@ -1353,7 +1353,7 @@ static int test_cgfreezer_time_child(const char *root)
        }
 
        if (ctime <= ptime) {
-               debug("Expect ctime (%ld) <= ptime (%ld)\n", ctime, ptime);
+               debug("Expect ctime (%ld) > ptime (%ld)\n", ctime, ptime);
                goto cleanup;
        }