Skip to content

Commit

Permalink
Merge pull request containerd#10591 from zhsj/bpo-10562-1.6
Browse files Browse the repository at this point in the history
[release/1.6] Fix TestNewBinaryIOCleanup on Go 1.23 and Linux 5.4
  • Loading branch information
estesp authored Aug 14, 2024
2 parents 2958525 + 4fd7d4e commit 7a530d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/process/io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,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:]...)
}
}
Expand Down

0 comments on commit 7a530d2

Please sign in to comment.