This functionality and test was recently added in CL 592415. It fails on GOOS=netbsd specifically:
=== RUN TestMremapPtr
mremap_test.go:67: MremapPtr: cannot allocate memory
--- FAIL: TestMremapPtr (0.00s)
(From https://ci.chromium.org/b/8744162608784922945.)
CC @golang/netbsd, @ncruces.
Comment From: ncruces
Oh. Sorry about that. I had asked to run CI tests because I couldn't test other OSes. I'll try to set up something NetBSD to test this.
Comment From: gabyhelp
Similar Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Comment From: ncruces
I've tried to verify this fix by setting up NetBSD with GitHub actions, but would appreciate that the CL would go through this testing somehow during review?
Comment From: gopherbot
Change https://go.dev/cl/594756 mentions this issue: unix: fix MremapPtr test failing on NetBSD
Comment From: dmitshur
@ncruces See https://go.dev/wiki/SlowBots. In particular, you should be able to include a footer like this:
Cq-Include-Trybots: luci.golang.try:x_sys-gotip-netbsd-arm64
That'll cause those builders to run when a Commit-Queue+1 vote is left.
Comment From: ncruces
Apparently there was a CI availability issue. If anyone can try again. Otherwise I'm reasonably confident due to reproducing and fixing on my end. I'll have a stab at #68181.