mirror of
https://github.com/containerd/containerd.git
synced 2026-08-12 22:16:27 +00:00
Fix TestNewBinaryIOCleanup on Go 1.23 and Linux 5.4
When running the test on Ubuntu focal (kernel version 5.4), the
symlink for pidfd is anon_inode:[pidfd].
Updates: #10345
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
(cherry picked from commit 8ef73c5dd5)
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
This commit is contained in:
@@ -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:]...)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user