Skip to content

Commit ac7da2e

Browse files
authored
Merge pull request containerd#10590 from zhsj/bpo-10562-1.7
[release/1.7] Fix TestNewBinaryIOCleanup on Go 1.23 and Linux 5.4
2 parents 716c7b7 + 09ca004 commit ac7da2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/process/io_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ func descriptorCount(t *testing.T) int {
8888
continue
8989
}
9090

91-
if strings.HasPrefix(sym, "pidfd:") {
91+
if strings.Contains(sym, "pidfd") {
92+
// Either pidfd:[70517] or anon_inode:[pidfd] (on Linux 5.4)
9293
files = append(files[:i], files[i+1:]...)
9394
}
9495
}

0 commit comments

Comments
 (0)