//go:build !linux package hostenv import "testing" // U3: off Linux there is no checked write, so write refuses and leaves // nothing behind. func TestWriteRefusesOffLinux(t *testing.T) { root := t.TempDir() err := writeHostEnv(root, []byte("CARLOS_REGION=ie\n")) if err == nil || err.Error() != "carlos system host-env write runs only on Linux" { t.Fatalf("%v", err) } }