Skip to content

Commit

Permalink
Merge pull request containerd#10590 from zhsj/bpo-10562-1.7
Browse files Browse the repository at this point in the history
[release/1.7] Fix TestNewBinaryIOCleanup on Go 1.23 and Linux 5.4
  • Loading branch information
estesp authored Aug 14, 2024
2 parents 716c7b7 + 09ca004 commit ac7da2e
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 @@ -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:]...)
}
}
Expand Down

0 comments on commit ac7da2e

Please sign in to comment.