// fake_stress_ng simulates stress-ng for unit tests. Accepts (and // ignores) any flag, sleeps briefly so callers that measure wall-clock // see a non-zero elapsed, and prints the "passed" lines CPUStress // expects. Exits 0. package main import ( "fmt" "os" "time" ) func main() { fmt.Fprintln(os.Stderr, "fake_stress_ng invoked:", os.Args[1:]) time.Sleep(50 * time.Millisecond) fmt.Println("stress-ng: info: [1] dispatching hogs: 1 cpu") fmt.Println("stress-ng: info: [1] successful run completed in 0.05s") }