-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libct/cg: add test for remove a non-existent dir in a ro mount point #4526
libct/cg: add test for remove a non-existent dir in a ro mount point #4526
Conversation
e9eb730
to
058b6f2
Compare
058b6f2
to
35800c8
Compare
35800c8
to
11a33c5
Compare
11a33c5
to
cc74fd1
Compare
libcontainer/cgroups/utils_test.go
Outdated
defer func() { | ||
_ = unix.Unmount(dirTo, 0) | ||
}() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I overlooked it the first time. This defer should be added after the first mount, not after the second one. Not very important though since the second one shouldn't fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nit, but overall lgtm
Signed-off-by: lfbzhm <[email protected]>
cc74fd1
to
119111a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1.2 backport: #4531 |
This is a unit test for the similar issue of #4518.