]> Cypherpunks repositories - gostls13.git/commit
internal/runtime/cgroup: allow more tests to run on all OSes
author胡玮文 <huweiwen.hww@alibaba-inc.com>
Fri, 21 Nov 2025 15:26:50 +0000 (23:26 +0800)
committerMichael Pratt <mpratt@google.com>
Tue, 25 Nov 2025 18:51:12 +0000 (10:51 -0800)
commit1cc1337f0a24e281bd278d100349d273ea0bcf0f
tree7db892a3932d4e0ea505af14239635787356c15c
parent6e4a0d8e44c845251c01fee3923113e6ba8d1e06
internal/runtime/cgroup: allow more tests to run on all OSes

Move non-Linux specific part out of _linux.go. The parsing code itself
doesn't depend anything Linux specific, even if it the format is Linux
specific.

This should benefit developers working on non-Linux OSes.

Change-Id: I1692978d583c3dd9a57ff269c97e8fca53a7a057
Reviewed-on: https://go-review.googlesource.com/c/go/+/723240
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Carrillo Rodriguez <carrillorodriguez672@gmail.com>
src/internal/runtime/cgroup/cgroup.go [new file with mode: 0644]
src/internal/runtime/cgroup/cgroup_linux.go
src/internal/runtime/cgroup/cgroup_test.go [moved from src/internal/runtime/cgroup/cgroup_linux_test.go with 100% similarity]
src/internal/runtime/cgroup/export_linux_test.go [deleted file]
src/internal/runtime/cgroup/export_test.go