Merge pull request #10562 from zhsj/pidfd

Fix TestNewBinaryIOCleanup on Go 1.23 and Linux 5.4
This commit is contained in:
Derek McGowan 2024-08-09 13:13:58 +00:00 committed by GitHub
commit 268ae7fa02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,7 +88,8 @@ func descriptorCount(t *testing.T) int {
continue
}
if strings.HasPrefix(sym, "pidfd:") {
if strings.Contains(sym, "pidfd") {
// Either pidfd:[70517] or anon_inode:[pidfd] (on Linux 5.4)
files = append(files[:i], files[i+1:]...)
}
}