diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-23 14:53:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 14:53:26 -0500 |
commit | ca0af71befa7e8408d83c59511e289cb57cf3c6d (patch) | |
tree | 2823cf9123dbb8e082fcc83fc098d28cf63fe2a0 /test | |
parent | 4dfcd585243b1695d36ac2a1a90dcb9818773511 (diff) | |
parent | e5ac28f3b968661e5c2603880a5c4576d590f3dd (diff) | |
download | podman-ca0af71befa7e8408d83c59511e289cb57cf3c6d.tar.gz podman-ca0af71befa7e8408d83c59511e289cb57cf3c6d.tar.bz2 podman-ca0af71befa7e8408d83c59511e289cb57cf3c6d.zip |
Merge pull request #9485 from vrothberg/fix-9479
container removal: handle already removed containers
Diffstat (limited to 'test')
-rw-r--r-- | test/system/055-rm.bats | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/system/055-rm.bats b/test/system/055-rm.bats index 0107114b5..a5770f20f 100644 --- a/test/system/055-rm.bats +++ b/test/system/055-rm.bats @@ -51,6 +51,13 @@ load helpers run_podman rm $rand $external_cid } +@test "podman rm <-> run --rm race" { + # A container's lock is released before attempting to stop it. This opens + # the window for race conditions that led to #9479. + run_podman run --rm -d $IMAGE sleep infinity + run_podman rm -af +} + # I'm sorry! This test takes 13 seconds. There's not much I can do about it, # please know that I think it's justified: podman 1.5.0 had a strange bug # in with exit status was not preserved on some code paths with 'rm -f' |