Go version

go1.23rc1 (exact version not important here)

Output of go env in your module/workspace:

GOOS=aix
GOARCH=ppc64

What did you do?

Checkout x/oscar at d40bdb84246db6c7175e89da9c0f88fd32162994 cd $oscarsrc; go test ./internal/httprr -test.run=TestErrors -test.count=1

What did you see happen?

When this test is run as root (unfortunate, but that is how the AIX CI is set up today), /dev/null is removed.

What did you expect to see?

/dev/null is not deleted.

Comment From: gopherbot

Change https://go.dev/cl/600515 mentions this issue: internal/httprr: do not delete /dev/null