Source file src/internal/cgrouptest/cgrouptest_linux_test.go
1 // Copyright 2025 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package cgrouptest 6 7 import ( 8 "fmt" 9 "testing" 10 ) 11 12 func TestInCgroupV2(t *testing.T) { 13 InCgroupV2(t, func(c *CgroupV2) { 14 fmt.Println("Created", c.Path()) 15 if err := c.SetCPUMax(500000, 100000); err != nil { 16 t.Errorf("Erroring setting cpu.max: %v", err) 17 } 18 }) 19 } 20