Linux cgroups development
 help / color / mirror / Atom feed
* [PATCH] selftests/cgroup: fix misleading debug message in test_cgfreezer_time_child
@ 2026-05-11  6:25 Tao Cui
  2026-05-11  8:36 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Tao Cui @ 2026-05-11  6:25 UTC (permalink / raw)
  To: tj, hannes, mkoutny, shuah, cgroups; +Cc: Tao Cui

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>
---
 tools/testing/selftests/cgroup/test_freezer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/cgroup/test_freezer.c b/tools/testing/selftests/cgroup/test_freezer.c
index 160a9e6ad277..0569e93fa6b0 100644
--- a/tools/testing/selftests/cgroup/test_freezer.c
+++ b/tools/testing/selftests/cgroup/test_freezer.c
@@ -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;
 	}
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] selftests/cgroup: fix misleading debug message in test_cgfreezer_time_child
  2026-05-11  6:25 [PATCH] selftests/cgroup: fix misleading debug message in test_cgfreezer_time_child Tao Cui
@ 2026-05-11  8:36 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2026-05-11  8:36 UTC (permalink / raw)
  To: Tao Cui; +Cc: hannes, mkoutny, shuah, cgroups

Hello,

Applied to cgroup/for-7.2.

Thanks.

--
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-11  8:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-11  6:25 [PATCH] selftests/cgroup: fix misleading debug message in test_cgfreezer_time_child Tao Cui
2026-05-11  8:36 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox