tklauser / go-sysconf

sysconf for Go, without using cgo
https://pkg.go.dev/github.com/tklauser/go-sysconf
BSD 3-Clause "New" or "Revised" License
141 stars 27 forks source link

TestGetconf fails with OPEN_MAX #77

Closed zhsj closed 1 year ago

zhsj commented 1 year ago
--- FAIL: TestGetconf (0.00s)
    sysconf_test.go:87: Sysconf(OPEN_MAX/4) returned 1048576, want 1024
FAIL

I think it's related to https://github.com/golang/go/issues/46279

So my system OPEN_MAX is 1024, and Go just bumps it to 1024*1024. However getconf still reports the origin one.

tklauser commented 1 year ago

I think this was „fixed“ by https://github.com/tklauser/go-sysconf/pull/71. I‘ll tag a new release wirh that change included.

zhsj commented 1 year ago

Oh I miss that! When I browser new commits on master, I just notice the dependabot ones...