portable-devtools / go /src /internal /cgrouptest /cgrouptest_linux_test.go
codekingpro's picture
Add files using upload-large-folder tool
de452ad verified
Raw
History Blame Contribute Delete
429 Bytes
// Copyright 2025 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package cgrouptest
import (
"fmt"
"testing"
)
func TestInCgroupV2(t *testing.T) {
InCgroupV2(t, func(c *CgroupV2) {
fmt.Println("Created", c.Path())
if err := c.SetCPUMax(500000, 100000); err != nil {
t.Errorf("Erroring setting cpu.max: %v", err)
}
})
}